Alex Henrie : quartz/tests: Fix overflow in 32-bit time calculation.
Alexandre Julliard
julliard at winehq.org
Thu Jun 4 16:08:02 CDT 2020
Module: wine
Branch: master
Commit: 56e72e071dfa0fd9954f765fabf8e2a9ccb01af1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=56e72e071dfa0fd9954f765fabf8e2a9ccb01af1
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Wed Jun 3 22:38:39 2020 -0600
quartz/tests: Fix overflow in 32-bit time calculation.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/quartz/tests/systemclock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/quartz/tests/systemclock.c b/dlls/quartz/tests/systemclock.c
index 71a7ac26d8..f13e89abed 100644
--- a/dlls/quartz/tests/systemclock.c
+++ b/dlls/quartz/tests/systemclock.c
@@ -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));
More information about the wine-cvs
mailing list