diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
commit | 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch) | |
tree | 2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/SeenPlugin/src/file.cpp | |
parent | a61c8728b379057fe7f0a0d86fe0b037598229dd (diff) |
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
Diffstat (limited to 'plugins/SeenPlugin/src/file.cpp')
-rw-r--r-- | plugins/SeenPlugin/src/file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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);
}
|