[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-cvs
Subject:    =?UTF-8?Q?Michael_Stefaniuc_=3A_atl80/tests=3AUse_wide-char_string_litera?= =?UTF-8?Q?ls=2E?=
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2020-09-30 19:35:29
Message-ID: E1kNhsv-0002e0-Rw () winehq ! org
[Download RAW message or body]

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

Author: Michael Stefaniuc <mstefani@winehq.org>
Date:   Tue Sep 29 23:29:34 2020 +0200

atl80/tests:Use wide-char string literals.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

---

 dlls/atl80/tests/atl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/atl80/tests/atl.c b/dlls/atl80/tests/atl.c
index b88177d9e0..7ad11ce5c9 100644
--- a/dlls/atl80/tests/atl.c
+++ b/dlls/atl80/tests/atl.c
@@ -35,8 +35,6 @@ static void test_ax_win(void)
 {
     BOOL ret;
     WNDCLASSEXW wcex;
-    static const WCHAR AtlAxWin80[] = {'A','t','l','A','x','W','i','n','8','0',0};
-    static const WCHAR AtlAxWinLic80[] = {'A','t','l','A','x','W','i','n','L','i','c','8','0',0};
     static HMODULE hinstance = 0;
 
     ret = AtlAxWinInit();
@@ -46,13 +44,13 @@ static void test_ax_win(void)
 
     memset(&wcex, 0, sizeof(wcex));
     wcex.cbSize = sizeof(wcex);
-    ret = GetClassInfoExW(hinstance, AtlAxWin80, &wcex);
+    ret = GetClassInfoExW(hinstance, L"AtlAxWin80", &wcex);
     ok(ret, "AtlAxWin80 has not registered\n");
     ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
 
     memset(&wcex, 0, sizeof(wcex));
     wcex.cbSize = sizeof(wcex);
-    ret = GetClassInfoExW(hinstance, AtlAxWinLic80, &wcex);
+    ret = GetClassInfoExW(hinstance, L"AtlAxWinLic80", &wcex);
     ok(ret, "AtlAxWinLic80 has not registered\n");
     ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic