Explorar o código

Kernel/Semaphore: Small style change

Subv %!s(int64=11) %!d(string=hai) anos
pai
achega
ea95876431
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());