mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
Fix implementation of wcsnlen and strnlen.
svn path=/trunk/; revision=17464
This commit is contained in:
@@ -21,7 +21,7 @@ wcsnlen (
|
||||
)
|
||||
{
|
||||
UINT i = 0;
|
||||
while( lpsz[i] && i < ucchMax ) i++;
|
||||
while( i < ucchMax && lpsz[i] ) i++;
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ strnlen (
|
||||
)
|
||||
{
|
||||
UINT i = 0;
|
||||
while( lpsz[i] && i < uiMax ) i++;
|
||||
while( i < uiMax && lpsz[i] ) i++;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user