mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Fix implementation of wcsnlen and strnlen.
svn path=/trunk/; revision=17464
This commit is contained in:
parent
dc4c46f7cc
commit
c2e747ed00
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ wcsnlen (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT i = 0;
|
UINT i = 0;
|
||||||
while( lpsz[i] && i < ucchMax ) i++;
|
while( i < ucchMax && lpsz[i] ) i++;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ strnlen (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT i = 0;
|
UINT i = 0;
|
||||||
while( lpsz[i] && i < uiMax ) i++;
|
while( i < uiMax && lpsz[i] ) i++;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue