Commit 6780c203 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

services: Fix calculation of service timeout.

parent 4931f5fb
...@@ -121,7 +121,7 @@ static void run_after_timeout(void (*func)(struct service_entry*), struct servic ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment