summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2012-09-12 16:14:25 +0000
committerAlexander Gluzsky <sss123next@list.ru>2012-09-12 16:14:25 +0000
commit59a1ec84b0e17a79815bfcb95ab20bfbc7b2dcec (patch)
tree4e93adefc72ac864b5451cd49e64db057abdbd2a /plugins
parent4975351ff463262e6687070873ed1c5880a0f92b (diff)
fixed critical logic bug
git-svn-id: http://svn.miranda-ng.org/main/trunk@1567 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/New_GPG/src/options.cpp6
1 files changed, 2 insertions, 4 deletions
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);