From 744843ed013e5e74f3e59cb197a67d05a28654b5 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 8 Jun 2020 18:12:13 +0200 Subject: [PATCH] ntdll: Reimplement _aullrem using 32-bit arithmetic. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/ntdll/large_int.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/large_int.c b/dlls/ntdll/large_int.c index 6b63fb87ee8..e55d450e1ed 100644 --- a/dlls/ntdll/large_int.c +++ b/dlls/ntdll/large_int.c @@ -878,7 +878,9 @@ __ASM_STDCALL_FUNC( _alldvrm, 16, */ ULONGLONG WINAPI _aullrem( ULONGLONG a, ULONGLONG b ) { - return a % b; + ULONGLONG r; + udivmod(a, b, &r); + return r; } /******************************************************************************