From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SeenPlugin/src/file.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/SeenPlugin/src/file.cpp') diff --git a/plugins/SeenPlugin/src/file.cpp b/plugins/SeenPlugin/src/file.cpp index 3417e06dd2..5337d2ecb5 100644 --- a/plugins/SeenPlugin/src/file.cpp +++ b/plugins/SeenPlugin/src/file.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" BOOL g_bFileActive; -static TCHAR *g_ptszFileStamp, *g_ptszFileName; +static wchar_t *g_ptszFileStamp, *g_ptszFileName; ///////////////////////////////////////////////////////////////////////////////////////// // Prepares the log file: @@ -35,8 +35,8 @@ void InitFileOutput(void) tszFileName = mir_tstrdup(DEFAULT_FILENAME); replaceStrT(g_ptszFileName, VARST(tszFileName)); - TCHAR *tszPath = NEWTSTR_ALLOCA(g_ptszFileName); - TCHAR *p = _tcsrchr(tszPath, '\\'); + wchar_t *tszPath = NEWWSTR_ALLOCA(g_ptszFileName); + wchar_t *p = wcsrchr(tszPath, '\\'); if (p) *p = 0; CreateDirectoryTreeT(tszPath); @@ -55,9 +55,9 @@ void UninitFileOutput() void FileWrite(MCONTACT hcontact) { - FILE *log = _tfopen(ParseString(g_ptszFileName, hcontact), L"a"); + FILE *log = _wfopen(ParseString(g_ptszFileName, hcontact), L"a"); if (log != NULL) { - _fputts(ParseString(g_ptszFileStamp, hcontact), log); + fputws(ParseString(g_ptszFileStamp, hcontact), log); fputs("\r\n", log); fclose(log); } -- cgit v1.2.3