[W32TIME] The interval is specified in seconds, but we need milliseconds
authorMark Jansen <mark.jansen@reactos.org>
Fri, 16 Aug 2019 14:29:20 +0000 (16:29 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Fri, 16 Aug 2019 14:29:20 +0000 (16:29 +0200)
base/services/w32time/w32time.c

index 590396f..abc58a5 100644 (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;