Author: cwittich
Date: Fri Oct 16 23:29:27 2009
New Revision: 43521
URL:
http://svn.reactos.org/svn/reactos?rev=43521&view=rev
Log:
don't set errno for libcnt
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 23:29:27 2009
@@ -79,7 +79,9 @@
if (any < 0)
{
acc = neg ? LONG_MIN : LONG_MAX;
+#ifndef _LIBCNT_
__set_errno(ERANGE);
+#endif
}
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 23:29:27 2009
@@ -63,7 +63,9 @@
if (any < 0)
{
acc = ULONG_MAX;
+#ifndef _LIBCNT_
__set_errno(ERANGE);
+#endif
}
else if (neg)
acc = -acc;