[W32TIME] The interval is specified in seconds, but we need milliseconds
[reactos.git] / 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;