summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2017-10-30 19:56:23 +0100
committerAl12rs <gabriel.cortesi@outlook.com>2017-10-30 19:56:23 +0100
commitd53591c6c9c2702d361a70417f37f4508fc43552 (patch)
tree54b755f6d92bbcbb375884e63e7657a94eb0b54b /src
parent701e6e4927ed887fc569aab97a1a6850e0f3dbdf (diff)
Changed segment of while condition in waitForProcessCompletion() from OR to AND as it alwais evaluated true.
Diffstat (limited to 'src')
-rw-r--r--src/organizercore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 9ae8beae..4857590d 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1254,7 +1254,7 @@ bool OrganizerCore::waitForProcessCompletion(HANDLE handle, LPDWORD exitCode)
while (
res = ::MsgWaitForMultipleObjects(1, &handle, false, 500,
QS_KEY | QS_MOUSE),
- ((res != WAIT_FAILED) || (res != WAIT_OBJECT_0)) &&
+ ((res != WAIT_FAILED) && (res != WAIT_OBJECT_0)) &&
((m_UserInterface == nullptr) || !m_UserInterface->unlockClicked())) {
if (!::GetVFSProcessList(&numProcesses, processes)) {