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:
parent
f676355366
commit
45be36130f
|
@ -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;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
|
Loading…
Reference in New Issue