瀏覽代碼

Event: Fix implementation of "non-sticky" events.

bunnei 11 年之前
父節點
當前提交
69c5830ef2
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/core/hle/kernel/event.cpp

+ 4 - 0
src/core/hle/kernel/event.cpp

@@ -33,6 +33,10 @@ public:
     }
 
     ResultVal<bool> Acquire() override {
+        // Release the event if it's not sticky...
+        if (reset_type != RESETTYPE_STICKY)
+            signaled = false;
+
         return MakeResult<bool>(true);
     }
 };