From fcb9378e01c555975433c8bd4239da8e8e1c87a4 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Fri, 16 Aug 2019 16:29:20 +0200 Subject: [PATCH] [W32TIME] The interval is specified in seconds, but we need milliseconds --- base/services/w32time/w32time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/services/w32time/w32time.c b/base/services/w32time/w32time.c index 590396fc771..abc58a5e151 100644 --- a/base/services/w32time/w32time.c +++ b/base/services/w32time/w32time.c @@ -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;