mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[host] windows: use DEBUG_WINERROR for exit event opening code
This commit is contained in:
parent
1fd726eed7
commit
9246e00163
@ -510,12 +510,15 @@ bool app_init(void)
|
|||||||
{
|
{
|
||||||
exitEvent = OpenEvent(SYNCHRONIZE, FALSE, exitEventName);
|
exitEvent = OpenEvent(SYNCHRONIZE, FALSE, exitEventName);
|
||||||
if (!exitEvent)
|
if (!exitEvent)
|
||||||
DEBUG_WARN("Failed to open exitEvent with error 0x%lx: %s", GetLastError(), exitEventName);
|
{
|
||||||
|
DEBUG_WINERROR("Failed to open exitEvent", GetLastError());
|
||||||
|
DEBUG_INFO("Exit event name: %s", exitEventName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!RegisterWaitForSingleObject(&app.exitWait, exitEvent, exitEventCallback, NULL,
|
if (!RegisterWaitForSingleObject(&app.exitWait, exitEvent, exitEventCallback, NULL,
|
||||||
INFINITE, WT_EXECUTEONLYONCE))
|
INFINITE, WT_EXECUTEONLYONCE))
|
||||||
DEBUG_ERROR("Failed to create register wait for exit event: 0x%lx", GetLastError());
|
DEBUG_WINERROR("Failed to create register wait for exit event", GetLastError());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user