[PATCH 4/7] libs/wine/string.c: Set errno to ERANGE in strtolW if either an underflow or overflow will occur
Hugh McMaster
hugh.mcmaster at outlook.com
Mon Feb 22 03:29:17 CST 2016
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
libs/wine/string.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libs/wine/string.c b/libs/wine/string.c
index b268bc7..7aa981f 100644
--- a/libs/wine/string.c
+++ b/libs/wine/string.c
@@ -163,6 +163,7 @@ long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base )
if (overflow)
{
+ errno = ERANGE;
return negative ? LONG_MIN : LONG_MAX;
}
--
1.9.1
More information about the wine-patches
mailing list