From 5d9d0b84655c8a400a9f7339c404842b194aa9f2 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 21 Jul 2020 12:21:45 +0200 Subject: [PATCH] msvcrt: Copy wcschr implementation from ntdll. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/msvcrt/wcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index 31ec0dd33fa..e193c085934 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -2663,7 +2663,8 @@ int CDECL MSVCRT_towupper(MSVCRT_wint_t c) */ MSVCRT_wchar_t* CDECL MSVCRT_wcschr(const MSVCRT_wchar_t *str, MSVCRT_wchar_t ch) { - return strchrW(str, ch); + do { if (*str == ch) return (WCHAR *)(ULONG_PTR)str; } while (*str++); + return NULL; } /*********************************************************************