From b25e8d1955f51b15d566b7e73199b044cfe0efa3 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 7 Sep 2010 20:03:07 +0300 Subject: bugfixes --- messages.cpp | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'messages.cpp') diff --git a/messages.cpp b/messages.cpp index 27c31fb..08b7666 100644 --- a/messages.cpp +++ b/messages.cpp @@ -132,7 +132,7 @@ int RecvMsgSvc(WPARAM w, LPARAM l) wstring path = tmp2; path.append(_T("\\encrypted_data.asc")); DeleteFile(path.c_str()); - wfstream f(path.c_str(), std::ios::out); + fstream f(path.c_str(), std::ios::out); f<szMessage; @@ -401,11 +407,8 @@ int SendMsgSvc(WPARAM w, LPARAM l) cmd += _T("\""); { char *tmp; -// if(unicode) - tmp = mir_utf8encodeW(str.c_str()); -// else -// tmp = mir_t2a(str.c_str()); - wfstream f(path.c_str(), std::ios::out); + tmp = mir_utf8encodeW(str.c_str()); + fstream f(path.c_str(), std::ios::out); f<