services: Fix calculation of service timeout.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-03-02 07:24:22 +01:00 committed by Alexandre Julliard
parent 4931f5fbe9
commit 6780c20342
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ static void run_after_timeout(void (*func)(struct service_entry*), struct servic
GetSystemTimeAsFileTime(&elem->time);
time.u.LowPart = elem->time.dwLowDateTime;
time.u.HighPart = elem->time.dwHighDateTime;
time.QuadPart += timeout*10000000;
time.QuadPart += (ULONGLONG)timeout * 10000;
elem->time.dwLowDateTime = time.u.LowPart;
elem->time.dwHighDateTime = time.u.HighPart;