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:
parent
068a419e42
commit
a88d75f4f6
|
@ -2658,9 +2658,11 @@ MSVCRT_wchar_t* CDECL MSVCRT_wcsrchr(const MSVCRT_wchar_t *str, MSVCRT_wchar_t c
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* wcslen (MSVCRT.@)
|
* 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue