Commit a511c093 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Copy strrchr implementation from ntdll.

parent d9c9d21d
......@@ -2302,7 +2302,9 @@ char* __cdecl MSVCRT_strchr(const char *str, int c)
*/
char* __cdecl MSVCRT_strrchr(const char *str, int c)
{
return strrchr(str, c);
char *ret = NULL;
do { if (*str == (char)c) ret = (char*)str; } while (*str++);
return ret;
}
/*********************************************************************
......
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