fixed boost.filesystem usage to not rely on deprecated functions

This commit is contained in:
Arvid Norberg
2008-11-21 23:38:07 +00:00
parent 446d3b51f0
commit 357d548bb5
7 changed files with 21 additions and 18 deletions

View File

@@ -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)