summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLePresidente <brian.alexander.munro@gmail.com>2016-12-20 03:18:43 -0800
committerLePresidente <brian.alexander.munro@gmail.com>2016-12-20 03:18:43 -0800
commit1cf368c126a558278765e00b8ea2a0791d9e88f8 (patch)
tree3819672b1a177d22620a82568659f22f6c81a8fe /src
parentafa0cb94461ce5a4f9e63af6aaee42105b66a898 (diff)
Reverted use of MOBase::isOneOf was causing the lock to fail.
Diffstat (limited to 'src')
-rw-r--r--src/organizercore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index d91e2423..46d146dc 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1242,8 +1242,8 @@ bool OrganizerCore::waitForProcessCompletion(HANDLE handle, LPDWORD exitCode)
while (
res = ::MsgWaitForMultipleObjects(1, &handle, false, 500,
QS_KEY | QS_MOUSE),
- (MOBase::isOneOf(res, {WAIT_FAILED, WAIT_OBJECT_0}) &&
- ((m_UserInterface == nullptr) || !m_UserInterface->unlockClicked()))) {
+ ((res != WAIT_FAILED) && (res != WAIT_OBJECT_0)) &&
+ ((m_UserInterface == nullptr) || !m_UserInterface->unlockClicked())) {
if (!::GetVFSProcessList(&numProcesses, processes)) {
break;