Przeglądaj źródła

Kernel/Semaphore: Small style change

Subv 11 lat temu
rodzic
commit
ea95876431
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/hle/kernel/semaphore.cpp

+ 1 - 1
src/core/hle/kernel/semaphore.cpp

@@ -34,7 +34,7 @@ public:
     }
 
     ResultVal<bool> WaitSynchronization() override {
-        bool wait = available_count == 0;
+        bool wait = !IsAvailable();
 
         if (wait) {
             Kernel::WaitCurrentThread(WAITTYPE_SEMA, GetHandle());