Piotr Caban : msvcr100/tests: Use wide-char string literals.

Alexandre Julliard julliard at winehq.org
Mon Nov 30 16:13:45 CST 2020


Module: wine
Branch: master
Commit: 847367dfc9ff4e757788d3eff4f6f39f76e30feb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=847367dfc9ff4e757788d3eff4f6f39f76e30feb

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Nov 30 10:10:20 2020 +0100

msvcr100/tests: Use wide-char string literals.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcr100/tests/msvcr100.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msvcr100/tests/msvcr100.c b/dlls/msvcr100/tests/msvcr100.c
index 8ac8f4ea3b8..bdd44fa405a 100644
--- a/dlls/msvcr100/tests/msvcr100.c
+++ b/dlls/msvcr100/tests/msvcr100.c
@@ -374,8 +374,8 @@ static BOOL init(void)
 static void test_wmemcpy_s(void)
 {
     static wchar_t dest[8], buf[32];
-    static const wchar_t tiny[] = {'T',0,'I','N','Y',0};
-    static const wchar_t big[] = {'a','t','o','o','l','o','n','g','s','t','r','i','n','g',0};
+    static const wchar_t tiny[] = L"T\0INY";
+    static const wchar_t big[] = L"atoolongstring";
     const wchar_t XX = 0x5858;     /* two 'X' bytes */
     int ret;
 
@@ -455,8 +455,8 @@ static void test_wmemcpy_s(void)
 static void test_wmemmove_s(void)
 {
     static wchar_t dest[8];
-    static const wchar_t tiny[] = {'T',0,'I','N','Y',0};
-    static const wchar_t big[] = {'a','t','o','o','l','o','n','g','s','t','r','i','n','g',0};
+    static const wchar_t tiny[] = L"T\0INY";
+    static const wchar_t big[] = L"atoolongstring";
     const wchar_t XX = 0x5858;     /* two 'X' bytes */
     int ret;
 




More information about the wine-cvs mailing list