summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-04-29 20:23:04 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2011-04-29 20:23:04 +0300
commit1dbcb0630d8e5c61d528f0f6fb5dfcb3395615c2 (patch)
tree404fec831e863fd57beb3c4f905149241ac1024f /messages.cpp
parent3d4fe3639635d0496906fb56b8014b14b0fd1ec7 (diff)
modified: main.cpp
modified: messages.cpp
Diffstat (limited to 'messages.cpp')
-rw-r--r--messages.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/messages.cpp b/messages.cpp
index 4b4a686..3c481f8 100644
--- a/messages.cpp
+++ b/messages.cpp
@@ -890,14 +890,15 @@ int HookSendMsg(WPARAM w, LPARAM l)
static BOOL CALLBACK DlgProcKeyPassword(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- char *inkeyid = UniGetContactSettingUtf(new_key_hcnt, szGPGModuleName, "InKeyID", "");
- new_key_hcnt_mutex.unlock();
- TCHAR *tmp = NULL;
-
+ char *inkeyid = NULL;
switch (msg)
{
case WM_INITDIALOG:
{
+ char *inkeyid = UniGetContactSettingUtf(new_key_hcnt, szGPGModuleName, "InKeyID", "");
+ new_key_hcnt_mutex.unlock();
+ TCHAR *tmp = NULL;
+
SetWindowPos(hwndDlg, 0, key_password_rect.left, key_password_rect.top, 0, 0, SWP_NOSIZE|SWP_SHOWWINDOW);
TranslateDialogDefault(hwndDlg);
string questionstr = "Please enter password for key with ID: ";