From 59a1ec84b0e17a79815bfcb95ab20bfbc7b2dcec Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Wed, 12 Sep 2012 16:14:25 +0000 Subject: fixed critical logic bug git-svn-id: http://svn.miranda-ng.org/main/trunk@1567 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/options.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/New_GPG') diff --git a/plugins/New_GPG/src/options.cpp b/plugins/New_GPG/src/options.cpp index 56bca849d7..cf4b9ce4aa 100755 --- a/plugins/New_GPG/src/options.cpp +++ b/plugins/New_GPG/src/options.cpp @@ -756,17 +756,15 @@ static BOOL CALLBACK editctrl_ctrl_a(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM lParam) { - static HANDLE hContact = user_data[item_num+1]; - - + static HANDLE hContact; TCHAR *tmp = NULL; - wstring key_buf; wstring::size_type ws1 = 0, ws2 = 0; switch (msg) { case WM_INITDIALOG: { + hContact = user_data[1]; default_edit_proc = GetWindowLongPtr(GetDlgItem(hwndDlg, IDC_PUBLIC_KEY_EDIT), GWLP_WNDPROC); SetWindowPos(hwndDlg, 0, load_key_rect.left, load_key_rect.top, 0, 0, SWP_NOSIZE|SWP_SHOWWINDOW); SetWindowLongPtr(GetDlgItem(hwndDlg, IDC_PUBLIC_KEY_EDIT), GWLP_WNDPROC, (LONG_PTR)editctrl_ctrl_a); -- cgit v1.2.3