From 1278080901b72eafd9613b4076d89c2078746293 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 27 Mar 2013 16:11:59 +0100 Subject: [PATCH] msvcrt: Don't forward memset to ntdll. --- dlls/msvcrt/msvcrt.spec | 2 +- dlls/msvcrt/string.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 7b272207edb..be940089844 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -1368,7 +1368,7 @@ @ cdecl memcpy_s(ptr long ptr long) @ cdecl memmove(ptr ptr long) ntdll.memmove @ cdecl memmove_s(ptr long ptr long) -@ cdecl memset(ptr long long) ntdll.memset +@ cdecl memset(ptr long long) MSVCRT_memset @ cdecl mktime(ptr) MSVCRT_mktime @ cdecl modf(double ptr) MSVCRT_modf @ cdecl -arch=arm,x86_64 modff(float ptr) MSVCRT_modff diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c index 0002ff05464..f7c21187da4 100644 --- a/dlls/msvcrt/string.c +++ b/dlls/msvcrt/string.c @@ -1566,6 +1566,14 @@ void * __cdecl MSVCRT_memcpy( void *dst, const void *src, size_t n ) return memmove( dst, src, n ); } +/********************************************************************* + * memset (MSVCRT.@) + */ +void* __cdecl MSVCRT_memset(void *dst, int c, MSVCRT_size_t n) +{ + return memset(dst, c, n); +} + /********************************************************************* * _strnicmp_l (MSVCRT.@) */