Author: janderwald
Date: Tue Jan 4 17:29:10 2011
New Revision: 50286
URL:
http://svn.reactos.org/svn/reactos?rev=50286&view=rev
Log:
[CRT]
- Set errno when a overflow occurs in strtoull
- Fixes 2 wine tests failures in msvcrt:string
Modified:
trunk/reactos/lib/sdk/crt/string/strtoull.c
Modified: trunk/reactos/lib/sdk/crt/string/strtoull.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/strtoul…
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/strtoull.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/strtoull.c [iso-8859-1] Tue Jan 4 17:29:10 2011
@@ -54,6 +54,7 @@
if (any < 0)
{
acc = ULLONG_MAX;
+ __set_errno(ERANGE);
}
else if (neg)
acc = -acc;