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

Alexandre Julliard julliard at winehq.org
Wed Dec 9 15:38:57 CST 2020


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Dec  9 00:33:56 2020 +0100

cryptui/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/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)
         {




More information about the wine-cvs mailing list