From f448e34cd84ebfd4c9fd874daadd3d868a1d0e33 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 5 Sep 2018 00:29:36 +0200 Subject: [PATCH] Use IoUtilities::NativeFileStream in PasswordFile * Allows to support UTF-8 characters in the path under Windows * Allows to open a file from existing file descriptor * Requires c++utilities to be compiled with USE_NATIVE_FILE_BUFFER to take effect. --- io/passwordfile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io/passwordfile.h b/io/passwordfile.h index 1db09e6..6b81453 100644 --- a/io/passwordfile.h +++ b/io/passwordfile.h @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -51,7 +52,7 @@ private: std::unique_ptr m_rootEntry; std::string m_extendedHeader; std::string m_encryptedExtendedHeader; - std::fstream m_file; + IoUtilities::NativeFileStream m_file; IoUtilities::BinaryReader m_freader; IoUtilities::BinaryWriter m_fwriter; };