fixed wpath bug #486

This commit is contained in:
Arvid Norberg 2009-02-25 04:56:00 +00:00
parent b25a8db2a6
commit 00916610c7
2 changed files with 4 additions and 3 deletions

View File

@ -34,6 +34,7 @@ release 0.14.3
* fixed boost-1.38 build
* fixed bug where web seeds would be connected before the files
were checked
* fixed filename bug when using wide characters
release 0.14.2

View File

@ -65,7 +65,7 @@ BOOST_STATIC_ASSERT(sizeof(lseek(0, 0, 0)) >= 8);
#include <cstring>
#include <vector>
#ifdef TORRENT_USE_WPATH
#if TORRENT_USE_WPATH
// for safe_convert
#include "libtorrent/storage.hpp"
#endif
@ -178,7 +178,7 @@ namespace libtorrent
FILE_ATTRIBUTE_HIDDEN, // hidden + executable
};
#ifdef TORRENT_USE_WPATH
#if TORRENT_USE_WPATH
m_path = safe_convert(path.external_file_string());
#else
m_path = utf8_native(path.external_file_string());
@ -291,7 +291,7 @@ namespace libtorrent
DWORD bytes_per_sector;
DWORD free_clusters;
DWORD total_clusters;
#ifdef TORRENT_USE_WPATH
#if TORRENT_USE_WPATH
wchar_t backslash = L'\\';
#else
char backslash = '\\';