mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:44:47 +00:00
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.@)
|
||||
*/
|
||||
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 a new issue