fixed wpath bug #486
This commit is contained in:
parent
b25a8db2a6
commit
00916610c7
|
@ -34,6 +34,7 @@ release 0.14.3
|
||||||
* fixed boost-1.38 build
|
* fixed boost-1.38 build
|
||||||
* fixed bug where web seeds would be connected before the files
|
* fixed bug where web seeds would be connected before the files
|
||||||
were checked
|
were checked
|
||||||
|
* fixed filename bug when using wide characters
|
||||||
|
|
||||||
release 0.14.2
|
release 0.14.2
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ BOOST_STATIC_ASSERT(sizeof(lseek(0, 0, 0)) >= 8);
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef TORRENT_USE_WPATH
|
#if TORRENT_USE_WPATH
|
||||||
// for safe_convert
|
// for safe_convert
|
||||||
#include "libtorrent/storage.hpp"
|
#include "libtorrent/storage.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
@ -178,7 +178,7 @@ namespace libtorrent
|
||||||
FILE_ATTRIBUTE_HIDDEN, // hidden + executable
|
FILE_ATTRIBUTE_HIDDEN, // hidden + executable
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef TORRENT_USE_WPATH
|
#if TORRENT_USE_WPATH
|
||||||
m_path = safe_convert(path.external_file_string());
|
m_path = safe_convert(path.external_file_string());
|
||||||
#else
|
#else
|
||||||
m_path = utf8_native(path.external_file_string());
|
m_path = utf8_native(path.external_file_string());
|
||||||
|
@ -291,7 +291,7 @@ namespace libtorrent
|
||||||
DWORD bytes_per_sector;
|
DWORD bytes_per_sector;
|
||||||
DWORD free_clusters;
|
DWORD free_clusters;
|
||||||
DWORD total_clusters;
|
DWORD total_clusters;
|
||||||
#ifdef TORRENT_USE_WPATH
|
#if TORRENT_USE_WPATH
|
||||||
wchar_t backslash = L'\\';
|
wchar_t backslash = L'\\';
|
||||||
#else
|
#else
|
||||||
char backslash = '\\';
|
char backslash = '\\';
|
||||||
|
|
Loading…
Reference in New Issue