Author: cwittich
Date: Fri Oct 16 22:40:41 2009
New Revision: 43519
URL:
http://svn.reactos.org/svn/reactos?rev=43519&view=rev
Log:
-fix some msvcrt string winetests
Modified:
trunk/reactos/lib/sdk/crt/string/strtol.c
trunk/reactos/lib/sdk/crt/string/strtoul.c
Modified: trunk/reactos/lib/sdk/crt/string/strtol.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/strtol.…
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/strtol.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/strtol.c [iso-8859-1] Fri Oct 16 22:40:41 2009
@@ -79,6 +79,7 @@
if (any < 0)
{
acc = neg ? LONG_MIN : LONG_MAX;
+ __set_errno(ERANGE);
}
else if (neg)
acc = -acc;
Modified: trunk/reactos/lib/sdk/crt/string/strtoul.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/strtoul…
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/strtoul.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/strtoul.c [iso-8859-1] Fri Oct 16 22:40:41 2009
@@ -63,6 +63,7 @@
if (any < 0)
{
acc = ULONG_MAX;
+ __set_errno(ERANGE);
}
else if (neg)
acc = -acc;