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

Alexandre Julliard julliard at winehq.org
Thu Oct 1 15:50:30 CDT 2020


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Sep 30 23:14:49 2020 +0200

comcat/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/comcat/tests/comcat.c | 20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

diff --git a/dlls/comcat/tests/comcat.c b/dlls/comcat/tests/comcat.c
index ff5b51a87b..97048cc46b 100644
--- a/dlls/comcat/tests/comcat.c
+++ b/dlls/comcat/tests/comcat.c
@@ -66,26 +66,10 @@ static void do_enum(void)
 	GUID wanted_guid;
 	ULONG fetched = -1;
 
-        static const WCHAR szCatID[] = {
-			'{',
-			'd','e','a','d','c','a','f','e',
-			'-','0','0','0','0','-','0','0','0','0',
-			'-','0','0','0','0',
-			'-','0','0','0','0','0','0','0','0','0','0','0','0',
-			'}',0};
-        static const WCHAR szGuid[] = {
-			'{',
-			'd','e','a','d','c','a','f','e','-',
-			'b','e','e','d','-',
-			'b','e','a','d','-',
-			'd','e','a','d','-',
-			'c','a','f','e','b','e','a','d','d','e','a','d',
-			'}',0};
-
 	IEnumCLSID *pIEnum =(IEnumCLSID*)0xdeadcafe;
 
-	CLSIDFromString(szCatID,the_cat);
-	CLSIDFromString(szGuid,&wanted_guid);
+	CLSIDFromString(L"{deadcafe-0000-0000-0000-000000000000}", the_cat);
+	CLSIDFromString(L"{deadcafe-beed-bead-dead-cafebeaddead}", &wanted_guid);
 
 	OleInitialize(NULL);
 




More information about the wine-cvs mailing list