diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-09-12 19:16:06 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-09-12 19:16:06 +0300 |
commit | 0bd63f75bacf28fa379c59ce270d27cb4dd47eb6 (patch) | |
tree | 9bea9933f4bd7e96ee3867ef296fe669cfa551f1 /options.cpp | |
parent | 755aafe56b115a482a25b22b09973173cebe115f (diff) |
fixed critical logic bug
Diffstat (limited to 'options.cpp')
-rwxr-xr-x | options.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/options.cpp b/options.cpp index a8cfbf1..cc020ef 100755 --- a/options.cpp +++ b/options.cpp @@ -756,9 +756,7 @@ 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;
@@ -767,6 +765,7 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam {
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);
|