From 428bf0cbd77813a43094cb5c984436deff251936 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Jul 2016 12:36:34 +0000 Subject: no more TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StopSpamMod/src/options.cpp | 2 +- plugins/StopSpamMod/src/utilities.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/StopSpamMod') diff --git a/plugins/StopSpamMod/src/options.cpp b/plugins/StopSpamMod/src/options.cpp index 8cc6139b5c..145f3c9352 100755 --- a/plugins/StopSpamMod/src/options.cpp +++ b/plugins/StopSpamMod/src/options.cpp @@ -322,7 +322,7 @@ MIRANDA_HOOK_EVENT(ME_OPT_INITIALISE, w, l) odp.pwszTitle = LPGENW("StopSpam"); odp.position = -1; odp.hInstance = hInst; - odp.flags = ODPF_TCHAR; + odp.flags = ODPF_UNICODE; odp.pwszTab = LPGENW("General"); odp.pszTemplate = MAKEINTRESOURCEA(IDD_MAIN); diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp index bb2086b078..5f3a810b60 100755 --- a/plugins/StopSpamMod/src/utilities.cpp +++ b/plugins/StopSpamMod/src/utilities.cpp @@ -21,9 +21,9 @@ wstring DBGetContactSettingStringPAN(MCONTACT hContact, char const * szModule, c { DBVARIANT dbv; //if(db_get(hContact, szModule, szSetting, &dbv)) - if (db_get_ts(hContact, szModule, szSetting, &dbv)) + if (db_get_ws(hContact, szModule, szSetting, &dbv)) return errorValue; - // if(DBVT_TCHAR == dbv.type ) + // if(DBVT_WCHAR == dbv.type ) errorValue = dbv.ptszVal; db_free(&dbv); return errorValue; @@ -206,7 +206,7 @@ void LogSpamToFile(MCONTACT hContact, wstring message) if (hStopSpamLogDirH) FoldersGetCustomPathT(hStopSpamLogDirH, pszName, MAX_PATH, L""); else - mir_wstrncpy(pszName, VARST(L"%miranda_logpath%"), _countof(pszName)); + mir_wstrncpy(pszName, VARSW(L"%miranda_logpath%"), _countof(pszName)); wstring filename = pszName; filename += L"\\stopspam_mod.log"; -- cgit v1.2.3