fixed boost.filesystem usage to not rely on deprecated functions
This commit is contained in:
@@ -139,9 +139,9 @@ namespace libtorrent
|
||||
#ifdef TORRENT_WINDOWS
|
||||
|
||||
#ifdef UNICODE
|
||||
std::wstring file_path(safe_convert(path.native_file_string()));
|
||||
std::wstring file_path(safe_convert(path.external_file_string()));
|
||||
#else
|
||||
std::string file_path = utf8_native(path.native_file_string());
|
||||
std::string file_path = utf8_native(path.external_file_string());
|
||||
#endif
|
||||
|
||||
m_file_handle = CreateFile(
|
||||
@@ -173,7 +173,7 @@ namespace libtorrent
|
||||
| S_IRGRP | S_IWGRP
|
||||
| S_IROTH | S_IWOTH;
|
||||
|
||||
m_fd = ::open(path.native_file_string().c_str()
|
||||
m_fd = ::open(path.external_file_string().c_str()
|
||||
, mode, permissions);
|
||||
|
||||
if (m_fd == -1)
|
||||
|
Reference in New Issue
Block a user