mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 00:26:32 +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))
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user