msvcrt: Fix range check in wsctoul().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5d48eac456
commit
ad96d9195e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue