Austin English : msvcrt: Implement memcpy in msvcrt instead of forwarding to ntdll.

Alexandre Julliard julliard at winehq.org
Fri Dec 14 14:09:59 CST 2012


Module: wine
Branch: master
Commit: c8e71e9a3e301a58a9b1e91213949ec01b5eb6a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c8e71e9a3e301a58a9b1e91213949ec01b5eb6a4

Author: Austin English <austinenglish at gmail.com>
Date:   Thu Dec 13 20:01:48 2012 -0800

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 deletions(-)

diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index c4d0332..274554b 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 1e46488..2748c8d 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 );
+}




More information about the wine-cvs mailing list