Better faking of the user profile.

This commit is contained in:
Ben Vanik
2014-08-03 21:26:10 -07:00
parent 57dda9c755
commit 0a9d936f1e
8 changed files with 419 additions and 41 deletions

View File

@@ -44,13 +44,13 @@ void XNotifyListener::EnqueueNotification(XNotificationID id, uint32_t data) {
}
xe_mutex_lock(lock_);
auto existing = notifications_.find(id);
if (existing != notifications_.end()) {
if (notifications_.count(id)) {
// Already exists. Overwrite.
notifications_[id] = data;
} else {
// New.
notification_count_++;
notifications_.insert({ id, data });
}
SetEvent(wait_handle_);
xe_mutex_unlock(lock_);