git://git.jankratochvil.net
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
353b529
)
+wcsncmp()
author
short
<>
Sun, 3 Aug 2003 07:18:18 +0000
(07:18 +0000)
committer
short
<>
Sun, 3 Aug 2003 07:18:18 +0000
(07:18 +0000)
Fixed wcsncmp(,,n=0).
ntoskrnl/rtl/wstring.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/rtl/wstring.c
b/ntoskrnl/rtl/wstring.c
index
ee647f5
..
7a7dd80
100644
(file)
--- a/
ntoskrnl/rtl/wstring.c
+++ b/
ntoskrnl/rtl/wstring.c
@@
-216,10
+216,11
@@
wchar_t * wcsncat(wchar_t *dest, const wchar_t *src, size_t count)
return dest;
}
return dest;
}
+#endif /* LIBCAPTIVE */
int wcsncmp(const wchar_t *cs, const wchar_t *ct, size_t count)
{
int wcsncmp(const wchar_t *cs, const wchar_t *ct, size_t count)
{
- while (*cs != '\0' && *ct != '\0' && *cs == *ct &&
--count
)
+ while (*cs != '\0' && *ct != '\0' && *cs == *ct &&
count-- > 0
)
{
cs++;
ct++;
{
cs++;
ct++;
@@
-227,6
+228,7
@@
int wcsncmp(const wchar_t *cs, const wchar_t *ct, size_t count)
return *cs - *ct;
}
return *cs - *ct;
}
+#ifndef LIBCAPTIVE
wchar_t *wcsncpy(wchar_t *dest, const wchar_t *src, size_t count)
{
wchar_t *wcsncpy(wchar_t *dest, const wchar_t *src, size_t count)
{