Alex Henrie : cryptui: Have a single empty wide string at the top of main.c.

Alexandre Julliard julliard at winehq.org
Tue Dec 4 16:33:55 CST 2018


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

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Fri Nov 30 00:14:01 2018 -0700

cryptui: Have a single empty wide string at the top of main.c.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/cryptui/main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index 1fbe63e..a100419 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -46,6 +46,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(cryptui);
 
 static HINSTANCE hInstance;
 
+static const WCHAR empty[] = {0};
+
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
     TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
@@ -804,8 +806,6 @@ static LRESULT CALLBACK cert_mgr_advanced_dlg_proc(HWND hwnd, UINT msg,
 
 static void cert_mgr_clear_cert_selection(HWND hwnd)
 {
-    WCHAR empty[] = { 0 };
-
     EnableWindow(GetDlgItem(hwnd, IDC_MGR_EXPORT), FALSE);
     EnableWindow(GetDlgItem(hwnd, IDC_MGR_REMOVE), FALSE);
     EnableWindow(GetDlgItem(hwnd, IDC_MGR_VIEW), FALSE);
@@ -1166,7 +1166,6 @@ static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
             break;
         case LVN_ITEMCHANGED:
         {
-            WCHAR empty[] = { 0 };
             NMITEMACTIVATE *nm = (NMITEMACTIVATE*)lp;
             HWND lv = GetDlgItem(hwnd, IDC_MGR_CERTS);
             int numSelected = SendMessageW(lv, LVM_GETSELECTEDCOUNT, 0, 0);




More information about the wine-cvs mailing list