summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_file.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-03-01 11:43:42 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-03-01 11:43:42 +0000
commit0281a1b407d4f8568197e6a6d52165c4ff853e9f (patch)
tree3f64ed4b5f1a5a41c15ed110b3d4219b92b23f4d /protocols/JabberG/src/jabber_file.cpp
parentbf2b6b24b123538b937b31d9fd9244a4742c15b8 (diff)
Jabber: Fixed TCHAR Logging in DebugLog
git-svn-id: http://svn.miranda-ng.org/main/trunk@8341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_file.cpp')
-rw-r--r--protocols/JabberG/src/jabber_file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp
index 92d9019b32..1594f0e574 100644
--- a/protocols/JabberG/src/jabber_file.cpp
+++ b/protocols/JabberG/src/jabber_file.cpp
@@ -395,11 +395,11 @@ int CJabberProto::FileSendParse(JABBER_SOCKET s, filetransfer *ft, char* buffer,
if (ft->httpPath == NULL)
debugLogA("Requested file name does not matched (httpPath == NULL)");
else
- debugLogA("Requested file name does not matched ('%s' vs. '%s')", ft->httpPath, t);
+ debugLog(_T("Requested file name does not matched ('%s' vs. '%s')"), ft->httpPath, t);
ft->state = FT_ERROR;
break;
}
- debugLogA("Sending [%s]", ft->std.ptszFiles[ currentFile ]);
+ debugLog(_T("Sending [%s]"), ft->std.ptszFiles[ currentFile ]);
_tstati64(ft->std.ptszFiles[ currentFile ], &statbuf); // file size in statbuf.st_size
if ((fileId = _topen(ft->std.ptszFiles[currentFile], _O_BINARY|_O_RDONLY)) < 0) {
debugLogA("File cannot be opened");
@@ -517,12 +517,12 @@ int filetransfer::create()
WaitForSingleObject(hWaitEvent, INFINITE);
if (fileId == -1) {
- ppro->debugLogA("Saving to [%S]", std.tszCurrentFile);
+ ppro->debugLog(_T("Saving to [%s]"), std.tszCurrentFile);
fileId = _topen(std.tszCurrentFile, _O_BINARY | _O_CREAT | _O_TRUNC | _O_WRONLY, _S_IREAD | _S_IWRITE);
}
if (fileId == -1)
- ppro->debugLogA("Cannot create file '%S' during a file transfer", filefull);
+ ppro->debugLog(_T("Cannot create file '%s' during a file transfer"), filefull);
else if (std.currentFileSize != 0)
_chsize(fileId, std.currentFileSize);