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

Alexandre Julliard julliard at winehq.org
Wed Oct 28 15:58:17 CDT 2020


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Oct 28 00:39:08 2020 +0100

sapi/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/sapi/tests/token.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/sapi/tests/token.c b/dlls/sapi/tests/token.c
index 1ca49398ad1..47196d42dc7 100644
--- a/dlls/sapi/tests/token.c
+++ b/dlls/sapi/tests/token.c
@@ -54,7 +54,6 @@ static void test_token_category(void)
     ISpObjectTokenCategory *cat;
     IEnumSpObjectTokens *enum_tokens;
     HRESULT hr;
-    WCHAR bogus[] = {'b','o','g','u','s',0};
     ULONG count;
 
     hr = CoCreateInstance( &CLSID_SpObjectTokenCategory, NULL, CLSCTX_INPROC_SERVER,
@@ -64,7 +63,7 @@ static void test_token_category(void)
     hr = ISpObjectTokenCategory_EnumTokens( cat, NULL, NULL, &enum_tokens );
     ok( hr == SPERR_UNINITIALIZED, "got %08x\n", hr );
 
-    hr = ISpObjectTokenCategory_SetId( cat, bogus, FALSE );
+    hr = ISpObjectTokenCategory_SetId( cat, L"bogus", FALSE );
     ok( hr == SPERR_INVALID_REGISTRY_KEY, "got %08x\n", hr );
 
     hr = ISpObjectTokenCategory_SetId( cat, SPCAT_VOICES, FALSE );




More information about the wine-cvs mailing list