summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-10-11 23:37:54 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-10-11 23:37:54 +0300
commitf0bca208f1d668f0ad3d51afdafbb9d30ec8555b (patch)
tree19354a120aa15c7b204a0061b03e1d6f340d0760 /main.cpp
parenta5086db857e474538a24df4b05e5aab831d4c2fe (diff)
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 )
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
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: ";