Fix implementation of wcsnlen and strnlen.

svn path=/trunk/; revision=17464
This commit is contained in:
Filip Navara
2005-08-21 15:51:57 +00:00
parent dc4c46f7cc
commit c2e747ed00
+2 -2
View File
@@ -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;
}