fix CreateWaitableTimer on Windows 7

This commit is contained in:
Roman Fomin 2024-10-08 20:05:49 +07:00
parent 0a429432a9
commit 154ccf8849

View File

@ -153,10 +153,11 @@ void I_InitTimer(void)
CREATE_WAITABLE_TIMER_MANUAL_RESET
| CREATE_WAITABLE_TIMER_HIGH_RESOLUTION,
TIMER_ALL_ACCESS);
#else
hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
#endif
if (hTimer == NULL)
{
hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
}
if (hTimer == NULL)
{
I_Error("I_InitTimer: CreateWaitableTimer failed");