From c8e71e9a3e301a58a9b1e91213949ec01b5eb6a4 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 13 Dec 2012 20:01:48 -0800 Subject: [PATCH] msvcrt: Implement memcpy in msvcrt instead of forwarding 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 c4d03329f92..274554b38c5 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -1338,7 +1338,7 @@ @ cdecl mbtowc(ptr str long) MSVCRT_mbtowc @ cdecl memchr(ptr long long) ntdll.memchr @ cdecl memcmp(ptr ptr long) ntdll.memcmp -@ cdecl memcpy(ptr ptr long) ntdll.memcpy +@ cdecl memcpy(ptr ptr long) MSVCRT_memcpy @ cdecl memcpy_s(ptr long ptr long) @ cdecl memmove(ptr ptr long) ntdll.memmove @ cdecl memmove_s(ptr long ptr long) diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c index 1e464889437..2748c8d7970 100644 --- a/dlls/msvcrt/string.c +++ b/dlls/msvcrt/string.c @@ -1605,3 +1605,11 @@ int CDECL MSVCRT_I10_OUTPUT(MSVCRT__LDOUBLE ld80, int prec, int flag, struct _I1 return 1; } #undef I10_OUTPUT_MAX_PREC + +/********************************************************************* + * memcpy (NTDLL.@) + */ +void * __cdecl MSVCRT_memcpy( void *dst, const void *src, size_t n ) +{ + return memmove( dst, src, n ); +}