mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[host] platform: Close the exitEvent when done
This commit is contained in:
parent
ba8075a9fd
commit
7bcad37568
@ -558,10 +558,14 @@ bool app_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (exitEvent &&
|
||||
!RegisterWaitForSingleObject(&app.exitWait, exitEvent, exitEventCallback, NULL,
|
||||
if (exitEvent)
|
||||
{
|
||||
if (!RegisterWaitForSingleObject(
|
||||
&app.exitWait, exitEvent, exitEventCallback, NULL,
|
||||
INFINITE, WT_EXECUTEONLYONCE))
|
||||
DEBUG_WINERROR("Failed to register wait for exit event", GetLastError());
|
||||
CloseHandle(exitEvent);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user