diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 6169e82837a..9f68417aa25 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -666,7 +666,7 @@ @ cdecl mbtowc(wstr str long) MSVCRT_mbtowc @ cdecl memchr(ptr long long) ntdll.memchr @ cdecl memcmp(ptr ptr long) ntdll.memcmp -@ cdecl memcpy(ptr ptr long) ntdll.memmove #sic +@ cdecl memcpy(ptr ptr long) ntdll.memcpy @ cdecl memmove(ptr ptr long) ntdll.memmove @ cdecl memset(ptr long long) ntdll.memset @ cdecl mktime(ptr) MSVCRT_mktime diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 5502c76277d..3304ead6ff5 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -1308,7 +1308,7 @@ @ cdecl -private mbstowcs(ptr str long) NTDLL_mbstowcs @ cdecl -private memchr(ptr long long) @ cdecl -private memcmp(ptr ptr long) -@ cdecl -private memcpy(ptr ptr long) +@ cdecl -private memcpy(ptr ptr long) NTDLL_memcpy @ cdecl -private memmove(ptr ptr long) @ cdecl -private memset(ptr long long) @ cdecl -private pow(double double) diff --git a/dlls/ntdll/string.c b/dlls/ntdll/string.c index e05f7c33187..45d36d8eaf4 100644 --- a/dlls/ntdll/string.c +++ b/dlls/ntdll/string.c @@ -21,6 +21,7 @@ */ #include "config.h" +#include "wine/port.h" #include #include @@ -61,6 +62,18 @@ INT __cdecl NTDLL__memicmp( LPCSTR s1, LPCSTR s2, DWORD len ) } +/********************************************************************* + * memcpy (NTDLL.@) + * + * NOTES + * Behaves like memmove. + */ +void * __cdecl NTDLL_memcpy( void *dst, const void *src, size_t n ) +{ + return memmove( dst, src, n ); +} + + /********************************************************************* * _strupr (NTDLL.@) *