Commit 41a5da9b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Copy memset implementation from ntdll.

parent f0219373
......@@ -2263,7 +2263,9 @@ void * __cdecl MSVCRT_memcpy(void *dst, const void *src, MSVCRT_size_t n)
*/
void* __cdecl MSVCRT_memset(void *dst, int c, MSVCRT_size_t n)
{
return memset(dst, c, n);
volatile unsigned char *d = dst; /* avoid gcc optimizations */
while (n--) *d++ = c;
return dst;
}
/*********************************************************************
......
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