mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
Fix a bug in wcstoul causing it to set *endptr improperly.
svn path=/trunk/; revision=40197
This commit is contained in:
parent
c3927d7e15
commit
d17f538267
1 changed files with 1 additions and 1 deletions
|
@ -67,6 +67,6 @@ wcstoul(const wchar_t *nptr, wchar_t **endptr, int base)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue