[common] windows/event: fix control flow issue
This commit is contained in:
1 parent
503efdd0d8
commit
38b6b0ac40
1 file changed
+5
-5
@@ -68,13 +68,13 @@ bool lgWaitEvent(LGEvent * event, unsigned int timeout)
|
||||
case WAIT_FAILED:
|
||||
DEBUG_WINERROR("Wait for event failed", GetLastError());
|
||||
return false;
|
||||
|
||||
default:
|
||||
DEBUG_ERROR("Unknown wait event return code");
|
||||
return false;
|
||||
}
|
||||
|
||||
DEBUG_ERROR("Unknown wait event return code");
|
||||
}
|
||||
while(0);
|
||||
|
||||
return false;
|
||||
while(true);
|
||||
}
|
||||
|
||||
bool lgSignalEvent(LGEvent * event)
|
||||
|
||||
Reference in new issue
Block a user