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

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Alex Henrie 2020-06-03 22:38:39 -06:00 committed by Alexandre Julliard
parent cdfc45859c
commit 56e72e071d
1 changed files with 1 additions and 1 deletions

View File

@ -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));