From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mmap_SA/Import_SA/encryption.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Dbx_mmap_SA/Import_SA/encryption.c') diff --git a/plugins/Dbx_mmap_SA/Import_SA/encryption.c b/plugins/Dbx_mmap_SA/Import_SA/encryption.c index 6cb98d20c1..f261581041 100644 --- a/plugins/Dbx_mmap_SA/Import_SA/encryption.c +++ b/plugins/Dbx_mmap_SA/Import_SA/encryption.c @@ -62,7 +62,7 @@ void InitSecurity() GetModuleFileName(NULL,szMirandaDir,SIZEOF(szMirandaDir)); str2 = _tcsrchr(szMirandaDir,'\\'); - if( str2 != NULL ) + if ( str2 != NULL ) *str2=0; _tchdir(szMirandaDir); } @@ -112,7 +112,7 @@ void InitSecurity() } } if(ModulesCount >= 100) break; - if(!FindNextFileA(hFile, &fd)) break; + if (!FindNextFileA(hFile, &fd)) break; } AddMessage(LPGEN("%d crypto modules loaded"), ModulesCount); @@ -173,14 +173,14 @@ int CheckPassword(WORD checkWord, WORD cryptorUID, TCHAR * szDBName) { int i; int Found = 0; - for(i = 0; i < ModulesCount; i++){ + for(i = 0; i < ModulesCount; i++) { if(cryptorUID == Modules[i]->cryptor->uid){ CryptoEngine = Modules[i]->cryptor; Found = 1; break; } } - if(!Found){ + if (!Found){ AddMessage(LPGEN("Sorry, but your database encrypted with unknown module"), MB_OK); bCheckingPass = 0; return 0; @@ -245,7 +245,7 @@ BOOL CALLBACK DlgStdInProc(HWND hDlg, UINT uMsg,WPARAM wParam,LPARAM lParam) hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_PASS)); SendMessage(GetDlgItem(hDlg, IDC_HEADERBAR), WM_SETICON, 0, (LPARAM)hIcon); - if(!wrongPass) + if (!wrongPass) { mir_sntprintf(tszHeaderTxt, SIZEOF(tszHeaderTxt), _T("%s\n%s"), TranslateT("Please type in your password for"), lParam); SetWindowText(GetDlgItem(hDlg, IDC_HEADERBAR), tszHeaderTxt); @@ -287,7 +287,7 @@ BOOL CALLBACK DlgStdInProc(HWND hDlg, UINT uMsg,WPARAM wParam,LPARAM lParam) UINT uid = LOWORD(wParam); if(uid == IDOK){ - if(!GetWindowLongPtr(hDlg,GWLP_USERDATA)) + if (!GetWindowLongPtr(hDlg,GWLP_USERDATA)) { encryptKeyLength = GetDlgItemTextA(hDlg, IDC_USERPASS, encryptKey, 254); EndDialog(hDlg,IDOK); -- cgit v1.2.3