Alex Henrie : include: Add wmemcpy to wchar.h.

Alexandre Julliard julliard at winehq.org
Thu Sep 13 03:49:14 CDT 2018


Module: wine
Branch: stable
Commit: 705bb892ee5b67bb0985dc94c3b643dc84cb6dcd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=705bb892ee5b67bb0985dc94c3b643dc84cb6dcd

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Mon May 28 15:49:55 2018 -0600

include: Add wmemcpy to wchar.h.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 9e093cbcc7146e6185895e41ddae01cbc6e4678c)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 include/msvcrt/wchar.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h
index 0bf684d..b6e9109 100644
--- a/include/msvcrt/wchar.h
+++ b/include/msvcrt/wchar.h
@@ -10,6 +10,7 @@
 
 #include <crtdefs.h>
 #include <stdarg.h>
+#include <string.h>
 
 #include <pshpack8.h>
 
@@ -494,6 +495,11 @@ static inline int wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n)
     return 0;
 }
 
+static inline wchar_t* __cdecl wmemcpy(wchar_t *dst, const wchar_t *src, size_t n)
+{
+    return memcpy(dst, src, n * sizeof(wchar_t));
+}
+
 #ifdef __cplusplus
 }
 #endif




More information about the wine-cvs mailing list