From f6e6b4b56fbe87a13ff323f3c52cb3a3c66ac4cc Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Sun, 8 Mar 2020 17:56:06 +0100 Subject: [PATCH] dthread: use INFINITE enum for second argument to WaitForSingleObject --- Source/dthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/dthread.cpp b/Source/dthread.cpp index 6e3e9a0b9..e283d19c5 100644 --- a/Source/dthread.cpp +++ b/Source/dthread.cpp @@ -93,7 +93,7 @@ unsigned int __stdcall dthread_handler(void *) DWORD dwMilliseconds; while (dthread_running) { - if (!sgpInfoHead && WaitForSingleObject(sghWorkToDoEvent, 0xFFFFFFFF) == -1) { + if (!sgpInfoHead && WaitForSingleObject(sghWorkToDoEvent, INFINITE) == -1) { error_buf = TraceLastError(); app_fatal("dthread4:\n%s", error_buf); } @@ -140,7 +140,7 @@ void dthread_cleanup() dthread_running = FALSE; SetEvent(sghWorkToDoEvent); if (sghThread != INVALID_HANDLE_VALUE && glpDThreadId != GetCurrentThreadId()) { - if (WaitForSingleObject(sghThread, 0xFFFFFFFF) == -1) { + if (WaitForSingleObject(sghThread, INFINITE) == -1) { error_buf = TraceLastError(); app_fatal("dthread3:\n(%s)", error_buf); }