Author: jmorlan
Date: Tue Mar 24 02:51:59 2009
New Revision: 40197
URL:
http://svn.reactos.org/svn/reactos?rev=40197&view=rev
Log:
Fix a bug in wcstoul causing it to set *endptr improperly.
Modified:
trunk/reactos/lib/sdk/crt/string/wcstoul.c
Modified: trunk/reactos/lib/sdk/crt/string/wcstoul.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/wcstoul…
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/wcstoul.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/wcstoul.c [iso-8859-1] Tue Mar 24 02:51:59 2009
@@ -67,6 +67,6 @@
else if (neg)
acc = -acc;
if (endptr != 0)
- *endptr = any ? (wchar_t *)((size_t)s - 1) : (wchar_t *)((size_t)nptr);
+ *endptr = any ? (wchar_t *)((size_t)(s - 1)) : (wchar_t *)((size_t)nptr);
return acc;
}