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:
parent
4931f5fbe9
commit
6780c20342
|
@ -121,7 +121,7 @@ static void run_after_timeout(void (*func)(struct service_entry*), struct servic
|
||||||
GetSystemTimeAsFileTime(&elem->time);
|
GetSystemTimeAsFileTime(&elem->time);
|
||||||
time.u.LowPart = elem->time.dwLowDateTime;
|
time.u.LowPart = elem->time.dwLowDateTime;
|
||||||
time.u.HighPart = elem->time.dwHighDateTime;
|
time.u.HighPart = elem->time.dwHighDateTime;
|
||||||
time.QuadPart += timeout*10000000;
|
time.QuadPart += (ULONGLONG)timeout * 10000;
|
||||||
elem->time.dwLowDateTime = time.u.LowPart;
|
elem->time.dwLowDateTime = time.u.LowPart;
|
||||||
elem->time.dwHighDateTime = time.u.HighPart;
|
elem->time.dwHighDateTime = time.u.HighPart;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue