[c-host] win: fixed improper signal detection in event code

This commit is contained in:
Geoffrey McRae 2020-01-26 17:49:04 +11:00
parent dcc9625803
commit d860d6b891

View File

@ -179,7 +179,7 @@ bool lgWaitEvents(LGEvent * events[], int count, bool waitAll, unsigned int time
// null non signaled events from the handle list // null non signaled events from the handle list
for(int i = 0; i < count; ++i) for(int i = 0; i < count; ++i)
if (i != result && !lgWaitEvent(events[i], 0)) if (i != result && !lgWaitEvent(events[i], 0))
handles[i] = NULL; events[i] = NULL;
free(handles); free(handles);
return true; return true;
} }