From 2e931a0b2780587d85f3902468c935f5adba70c8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 11:52:52 +0000 Subject: more fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@17137 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/dbintf.cpp | 2 +- plugins/Dbx_mdb/src/ui.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/Dbx_mdb/src/dbintf.cpp b/plugins/Dbx_mdb/src/dbintf.cpp index 35e93d8fba..1bfc1ddc24 100644 --- a/plugins/Dbx_mdb/src/dbintf.cpp +++ b/plugins/Dbx_mdb/src/dbintf.cpp @@ -171,7 +171,7 @@ BYTE bDefHeader[] = { 0xDE, 0xC0, 0xEF, 0xBE }; int CDbxMdb::Check(void) { - FILE *pFile = _tfopen(m_tszProfileName, L"rb"); + FILE *pFile = _wfopen(m_tszProfileName, L"rb"); if (pFile == nullptr) return EGROKPRF_CANTREAD; diff --git a/plugins/Dbx_mdb/src/ui.cpp b/plugins/Dbx_mdb/src/ui.cpp index 3c12bf6dd6..7f73b41cd6 100644 --- a/plugins/Dbx_mdb/src/ui.cpp +++ b/plugins/Dbx_mdb/src/ui.cpp @@ -108,13 +108,13 @@ static INT_PTR CALLBACK sttChangePassword(HWND hwndDlg, UINT uMsg, WPARAM wParam case IDOK: TCHAR buf2[100]; GetDlgItemText(hwndDlg, IDC_USERPASS1, buf2, _countof(buf2)); - if (_tcslen(buf2) < 3) { + if (wcslen(buf2) < 3) { SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Password is too short!")); goto LBL_Error; } GetDlgItemText(hwndDlg, IDC_USERPASS2, buf, _countof(buf)); - if (_tcscmp(buf2, buf)) { + if (wcscmp(buf2, buf)) { SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Passwords do not match!")); goto LBL_Error; } -- cgit v1.2.3