From 4bba89a17624775e59b19d10da8b6967f74b5371 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Aug 2017 17:19:41 +0300 Subject: code cleaning --- plugins/Db3x_mmap/src/database.cpp | 2 -- plugins/Db3x_mmap/src/dbsettings.cpp | 5 +---- plugins/Db3x_mmap/src/ui.cpp | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/Db3x_mmap/src/database.cpp b/plugins/Db3x_mmap/src/database.cpp index d78dce8e58..d96086a42a 100644 --- a/plugins/Db3x_mmap/src/database.cpp +++ b/plugins/Db3x_mmap/src/database.cpp @@ -23,8 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" -int InitModuleNames(void); -int InitMap(void); int InitIni(void); void UninitIni(void); diff --git a/plugins/Db3x_mmap/src/dbsettings.cpp b/plugins/Db3x_mmap/src/dbsettings.cpp index 8f41895915..aacb29f2da 100644 --- a/plugins/Db3x_mmap/src/dbsettings.cpp +++ b/plugins/Db3x_mmap/src/dbsettings.cpp @@ -25,10 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #pragma warning(disable: 4701) -DWORD GetModuleNameOfs(const char *szName); -DBCachedContact* AddToCachedContactList(MCONTACT contactID, int index); - -#define VLT(n) ((n == DBVT_UTF8 || n == DBVT_ENCRYPTED)?DBVT_ASCIIZ:n) +#define VLT(n) ((n == DBVT_UTF8 || n == DBVT_ENCRYPTED) ? DBVT_ASCIIZ : n) BOOL CDb3Mmap::IsSettingEncrypted(LPCSTR szModule, LPCSTR szSetting) { diff --git a/plugins/Db3x_mmap/src/ui.cpp b/plugins/Db3x_mmap/src/ui.cpp index 8254a99df4..1eeab530f5 100644 --- a/plugins/Db3x_mmap/src/ui.cpp +++ b/plugins/Db3x_mmap/src/ui.cpp @@ -108,7 +108,7 @@ static INT_PTR CALLBACK sttEnterPassword(HWND hwndDlg, UINT uMsg, WPARAM wParam, CREDENTIAL cred = { 0 }; cred.Type = CRED_TYPE_GENERIC; cred.TargetName = L"Miranda NG/Dbx_mmap"; - cred.CredentialBlobSize = mir_wstrlen(param->newPass) * sizeof(wchar_t) + sizeof(wchar_t); + cred.CredentialBlobSize = DWORD(mir_wstrlen(param->newPass) * sizeof(wchar_t) + sizeof(wchar_t)); cred.CredentialBlob = (LPBYTE)param->newPass; cred.Persist = CRED_PERSIST_LOCAL_MACHINE; CredWrite(&cred, 0); -- cgit v1.2.3