[W32TIME] The interval is specified in seconds, but we need milliseconds

This commit is contained in:
Mark Jansen
2019-08-16 16:29:20 +02:00
parent 76dfa2b284
commit fcb9378e01

View File

@@ -297,7 +297,7 @@ ServiceMain(DWORD argc, LPWSTR *argv)
*/
}
if (WaitForSingleObject(hStopEvent, dwInterval) == WAIT_OBJECT_0)
if (WaitForSingleObject(hStopEvent, dwInterval * 1000) == WAIT_OBJECT_0)
{
CloseHandle(hStopEvent);
hStopEvent = NULL;