aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel/semaphore.cpp
diff options
context:
space:
mode:
authorGravatar Subv <subv2112@gmail.com>2014-12-13 10:29:11 -0500
committerGravatar Subv <subv2112@gmail.com>2014-12-13 13:40:19 -0500
commitea958764318d7446618b838f24a5dc8099a76e3b (patch)
tree0ad143a474cfae6a8cbe34f7cdbc0fd8fdc29726 /src/core/hle/kernel/semaphore.cpp
parenteffb18188848477e98a97102f358d7d4a38bd566 (diff)
Kernel/Semaphore: Small style change
Diffstat (limited to 'src/core/hle/kernel/semaphore.cpp')
-rw-r--r--src/core/hle/kernel/semaphore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp
index 331d3206..6f56da8a 100644
--- a/src/core/hle/kernel/semaphore.cpp
+++ b/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());