Commit 56e72e07 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

quartz/tests: Fix overflow in 32-bit time calculation.

parent cdfc4585
......@@ -183,7 +183,7 @@ static void test_get_time(void)
if (pGetTickCount64)
time2 = pGetTickCount64() * 10000;
else
time2 = GetTickCount() * 10000;
time2 = (REFERENCE_TIME)GetTickCount() * 10000;
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(time1 % 10000 == 0, "Expected no less than 1ms coarseness, but got time %s.\n",
wine_dbgstr_longlong(time1));
......
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