Commit 45be3613 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Copy strchr implementation from ntdll.

parent f6763553
...@@ -2284,7 +2284,11 @@ void* __cdecl MSVCRT_memset(void *dst, int c, MSVCRT_size_t n) ...@@ -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) 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;
} }
/********************************************************************* /*********************************************************************
......
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