ntdll: memcpy should behave like memmove in ntdll too.

This commit is contained in:
Alexandre Julliard 2006-01-24 12:28:34 +01:00
parent a1544e0d20
commit 2a192064e8
3 changed files with 15 additions and 2 deletions

View File

@ -666,7 +666,7 @@
@ cdecl mbtowc(wstr str long) MSVCRT_mbtowc @ cdecl mbtowc(wstr str long) MSVCRT_mbtowc
@ cdecl memchr(ptr long long) ntdll.memchr @ cdecl memchr(ptr long long) ntdll.memchr
@ cdecl memcmp(ptr ptr long) ntdll.memcmp @ 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 memmove(ptr ptr long) ntdll.memmove
@ cdecl memset(ptr long long) ntdll.memset @ cdecl memset(ptr long long) ntdll.memset
@ cdecl mktime(ptr) MSVCRT_mktime @ cdecl mktime(ptr) MSVCRT_mktime

View File

@ -1308,7 +1308,7 @@
@ cdecl -private mbstowcs(ptr str long) NTDLL_mbstowcs @ cdecl -private mbstowcs(ptr str long) NTDLL_mbstowcs
@ cdecl -private memchr(ptr long long) @ cdecl -private memchr(ptr long long)
@ cdecl -private memcmp(ptr ptr 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 memmove(ptr ptr long)
@ cdecl -private memset(ptr long long) @ cdecl -private memset(ptr long long)
@ cdecl -private pow(double double) @ cdecl -private pow(double double)

View File

@ -21,6 +21,7 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include <ctype.h> #include <ctype.h>
#include <stdarg.h> #include <stdarg.h>
@ -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.@) * _strupr (NTDLL.@)
* *