Alexandre Julliard : msvcrt: Fix range check in wsctoul().
Alexandre Julliard
julliard at winehq.org
Mon Nov 25 16:41:55 CST 2019
Module: wine
Branch: master
Commit: ad96d9195e4b524a7bf8ea7250aa384ee07bca0a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ad96d9195e4b524a7bf8ea7250aa384ee07bca0a
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sun Nov 24 12:42:03 2019 +0100
msvcrt: Fix range check in wsctoul().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/wcs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c
index 3e5bb512ff..1ae292423c 100644
--- a/dlls/msvcrt/wcs.c
+++ b/dlls/msvcrt/wcs.c
@@ -2487,7 +2487,7 @@ unsigned __int64 CDECL MSVCRT__wcstoui64(const MSVCRT_wchar_t *nptr,
MSVCRT_ulong __cdecl MSVCRT__wcstoul_l(const MSVCRT_wchar_t *s,
MSVCRT_wchar_t **end, int base, MSVCRT__locale_t locale)
{
- __int64 ret = MSVCRT__wcstoui64_l(s, end, base, locale);
+ unsigned __int64 ret = MSVCRT__wcstoui64_l(s, end, base, locale);
if(ret > MSVCRT_ULONG_MAX) {
ret = MSVCRT_ULONG_MAX;
More information about the wine-cvs
mailing list