Commit a88d75f4 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Copy wcslen implementation from ntdll.

parent 068a419e
...@@ -2658,9 +2658,11 @@ MSVCRT_wchar_t* CDECL MSVCRT_wcsrchr(const MSVCRT_wchar_t *str, MSVCRT_wchar_t c ...@@ -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;
} }
/********************************************************************* /*********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment