msvcrt: Copy strchr 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-22 11:10:33 +02:00 committed by Alexandre Julliard
parent f676355366
commit 45be36130f
1 changed files with 5 additions and 1 deletions

View File

@ -2284,7 +2284,11 @@ void* __cdecl MSVCRT_memset(void *dst, int c, MSVCRT_size_t n)
*/
char* __cdecl MSVCRT_strchr(const char *str, int c)
{
return strchr(str, c);
do
{
if (*str == (char)c) return (char*)str;
} while (*str++);
return NULL;
}
/*********************************************************************