[PATCH] cryptui/tests: Use wide-char string literals.

Michael Stefaniuc mstefani at winehq.org
Tue Dec 8 17:33:56 CST 2020


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/cryptui/tests/cryptui.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/dlls/cryptui/tests/cryptui.c b/dlls/cryptui/tests/cryptui.c
index bb1db929ba5..ea43f01962b 100644
--- a/dlls/cryptui/tests/cryptui.c
+++ b/dlls/cryptui/tests/cryptui.c
@@ -398,9 +398,8 @@ static void test_crypt_ui_wiz_import(void)
     ok(ret, "CryptUIWizImport failed: %08x\n", GetLastError());
     if (ret)
     {
-        static const WCHAR CA[] = { 'C','A',0 };
         HCERTSTORE ca = CertOpenStore(CERT_STORE_PROV_SYSTEM_W, 0, 0,
-         CERT_SYSTEM_STORE_CURRENT_USER, CA);
+         CERT_SYSTEM_STORE_CURRENT_USER, L"CA");
 
         if (ca)
         {
@@ -422,10 +421,8 @@ static void test_crypt_ui_wiz_import(void)
     ok(ret, "CryptUIWizImport failed: %08x\n", GetLastError());
     if (ret)
     {
-        static const WCHAR AddressBook[] = { 'A','d','d','r','e','s','s',
-         'B','o','o','k',0 };
         HCERTSTORE addressBook = CertOpenStore(CERT_STORE_PROV_SYSTEM_W, 0, 0,
-         CERT_SYSTEM_STORE_CURRENT_USER, AddressBook);
+         CERT_SYSTEM_STORE_CURRENT_USER, L"AddressBook");
 
         if (addressBook)
         {
@@ -476,10 +473,8 @@ static void test_crypt_ui_wiz_import(void)
     ok(ret, "CryptUIWizImport failed: %08x\n", GetLastError());
     if (ret)
     {
-        static const WCHAR AddressBook[] = { 'A','d','d','r','e','s','s',
-         'B','o','o','k',0 };
         HCERTSTORE addressBook = CertOpenStore(CERT_STORE_PROV_SYSTEM_W, 0, 0,
-         CERT_SYSTEM_STORE_CURRENT_USER, AddressBook);
+         CERT_SYSTEM_STORE_CURRENT_USER, L"AddressBook");
 
         if (addressBook)
         {
@@ -499,9 +494,8 @@ static void test_crypt_ui_wiz_import(void)
     ok(ret, "CryptUIWizImport failed: %08x\n", GetLastError());
     if (ret)
     {
-        static const WCHAR CA[] = { 'C','A',0 };
         HCERTSTORE ca = CertOpenStore(CERT_STORE_PROV_SYSTEM_W, 0, 0,
-         CERT_SYSTEM_STORE_CURRENT_USER, CA);
+         CERT_SYSTEM_STORE_CURRENT_USER, L"CA");
 
         if (ca)
         {
-- 
2.26.2




More information about the wine-devel mailing list