msvcrt: Copy strlen implementation from ntdll.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-07-22 11:10:40 +02:00 committed by Alexandre Julliard
parent 45be36130f
commit 770d3b8623
1 changed files with 3 additions and 1 deletions

View File

@ -1266,7 +1266,9 @@ int CDECL __STRINGTOLD( MSVCRT__LDOUBLE *value, char **endptr, const char *str,
*/
MSVCRT_size_t __cdecl MSVCRT_strlen(const char *str)
{
return strlen(str);
const char *s = str;
while (*s) s++;
return s - str;
}
/******************************************************************