mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[host] windows: don't register exit event when none exists
This commit is contained in:
parent
ac926e4458
commit
286da11172
@ -517,9 +517,10 @@ bool app_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (!RegisterWaitForSingleObject(&app.exitWait, exitEvent, exitEventCallback, NULL,
|
||||
if (exitEvent &&
|
||||
!RegisterWaitForSingleObject(&app.exitWait, exitEvent, exitEventCallback, NULL,
|
||||
INFINITE, WT_EXECUTEONLYONCE))
|
||||
DEBUG_WINERROR("Failed to create register wait for exit event", GetLastError());
|
||||
DEBUG_WINERROR("Failed to register wait for exit event", GetLastError());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user