From e060779f0f9f76b9ffb4082c20d7c2b3a86c1513 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 8 Sep 2010 01:32:19 +0300 Subject: is this first really stable build ? --- utilities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utilities.cpp') diff --git a/utilities.cpp b/utilities.cpp index 322541a..c78bc4a 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -476,11 +476,11 @@ static JABBER_HANDLER_FUNC SendHandler(IJabberInterface *ji, HXML node, void *pU } DeleteFile(path_out.c_str()); path_out += _T(".asc"); - f.open(path_out.c_str(), std::ios::in | std::ios::ate); + f.open(path_out.c_str(), std::ios::in | std::ios::ate | std::ios::binary); wstring data; if(f.is_open()) { - std::ifstream::pos_type size = f.tellg(); + std::wifstream::pos_type size = f.tellg(); TCHAR *tmp = new TCHAR [(std::ifstream::pos_type)size+(std::ifstream::pos_type)1]; f.seekg(0, std::ios::beg); f.read(tmp, size); -- cgit v1.2.3