msvcrt: Copy wcslen 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-21 12:21:27 +02:00 committed by Alexandre Julliard
parent 068a419e42
commit a88d75f4f6
1 changed files with 4 additions and 2 deletions

View File

@ -2658,9 +2658,11 @@ MSVCRT_wchar_t* CDECL MSVCRT_wcsrchr(const MSVCRT_wchar_t *str, MSVCRT_wchar_t c
/***********************************************************************
* wcslen (MSVCRT.@)
*/
int CDECL MSVCRT_wcslen(const MSVCRT_wchar_t *str)
MSVCRT_size_t CDECL MSVCRT_wcslen(const MSVCRT_wchar_t *str)
{
return strlenW(str);
const MSVCRT_wchar_t *s = str;
while (*s) s++;
return s - str;
}
/*********************************************************************