From f0bca208f1d668f0ad3d51afdafbb9d30ec8555b Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 11 Oct 2010 23:37:54 +0300 Subject: encrypted filetransfers //two paralell threads of more than one file will fail, miranda api lack of documentation, and ghaza does not remember how to edentify thread ) --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 1cefa44..4b0f46a 100644 --- a/main.cpp +++ b/main.cpp @@ -845,7 +845,7 @@ static BOOL CALLBACK DlgProcKeyGenDialog(HWND hwndDlg, UINT msg, WPARAM wParam, f<<"\n"; tmp = new TCHAR [64]; //i hope this is enough for password GetDlgItemText(hwndDlg, IDC_KEY_PASSWD, tmp, 64); - if(!tmp[0]) + if(tmp[0]) { f<<"Passphrase: "; tmp2 = mir_utf8encodeW(tmp); @@ -864,7 +864,7 @@ static BOOL CALLBACK DlgProcKeyGenDialog(HWND hwndDlg, UINT msg, WPARAM wParam, f<<"\n"; tmp = new TCHAR [512]; GetDlgItemText(hwndDlg, IDC_KEY_COMMENT, tmp, 512); - if(!tmp[0]) + if(tmp[0]) { tmp2 = mir_utf8encodeW(tmp); f<<"Name-Comment: "; -- cgit v1.2.3