Michael Stefaniuc : infosoft/tests: Use wide-char string literals.

Alexandre Julliard julliard at winehq.org
Fri Oct 2 14:54:08 CDT 2020


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Oct  1 23:26:29 2020 +0200

infosoft/tests: Use wide-char string literals.

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

---

 dlls/infosoft/tests/infosoft.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/dlls/infosoft/tests/infosoft.c b/dlls/infosoft/tests/infosoft.c
index 1e2792f19a..12bf65a56d 100644
--- a/dlls/infosoft/tests/infosoft.c
+++ b/dlls/infosoft/tests/infosoft.c
@@ -32,12 +32,7 @@
 DEFINE_GUID(CLSID_wb_neutral,  0x369647e0,0x17b0,0x11ce,0x99,0x50,0x00,0xaa,0x00,0x4b,0xbb,0x1f);
 DEFINE_GUID(_IID_IWordBreaker, 0xD53552C8,0x77E3,0x101A,0xB5,0x52,0x08,0x00,0x2B,0x33,0xB0,0xE6);
 
-static const WCHAR teststring[] = {
-    's','q','u','a','r','e',' ',
-    'c','i','r','c','l','e',' ',
-    't','r','i','a','n','g','l','e',' ',
-    'b','o','x',0
-};
+static const WCHAR teststring[] = L"square circle triangle box";
 
 struct expected {
     UINT ofs;
@@ -48,10 +43,10 @@ struct expected {
 static int wordnum;
 
 static struct expected testres[] = {
-    { 0, 6, {'s','q','u','a','r','e',0 }},
-    { 7, 6, {'c','i','r','c','l','e',0 }},
-    { 14, 8, {'t','r','i','a','n','g','l','e',0 }},
-    { 23, 3, {'b','o','x',0}},
+    { 0, 6, L"square" },
+    { 7, 6, L"circle" },
+    { 14, 8, L"triangle" },
+    { 23, 3, L"box" },
 };
 
 static HRESULT WINAPI ws_QueryInterface(IWordSink *iface, REFIID riid, void **ppvObject)




More information about the wine-cvs mailing list