summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-09-08 01:32:19 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-09-08 01:32:19 +0300
commite060779f0f9f76b9ffb4082c20d7c2b3a86c1513 (patch)
tree1036c62d0d204c7e6240102076e3c3476b9f6825 /options.cpp
parentb25e8d1955f51b15d566b7e73199b044cfe0efa3 (diff)
is this first really stable build ?
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/options.cpp b/options.cpp
index 72a0b77..c615cb8 100644
--- a/options.cpp
+++ b/options.cpp
@@ -1032,7 +1032,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
{
break;
}
- wfstream f(tmp, std::ios::in | std::ios::ate);
+ wfstream f(tmp, std::ios::in | std::ios::ate | std::ios::binary);
delete [] tmp;
if(!f.is_open())
{
@@ -1041,7 +1041,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
}
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);