From 9d426441f1a6adfa9658ba19e9e877e43cf9f04a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 17 Oct 2005 21:09:42 +0000 Subject: [PATCH] more fixes for the windows file_size function --- ChangeLog | 1 + src/storage.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 92945e82f..e322d8b3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + * fixed problem with file_size() when building on windows with unicode support * added a new torrent state, allocating * added a new alert, metadata_failed_alert * changed the interface to session::add_torrent for soem speed optimizations. diff --git a/src/storage.cpp b/src/storage.cpp index e3ecb7ece..6ec7aa0e2 100755 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -153,7 +153,7 @@ namespace ::GetFileExInfoStandard, &fad ) ) boost::throw_exception( filesystem_error( "boost::filesystem::file_size", - ph, fs::detail::system_error_code() ) ); + ph, detail::system_error_code() ) ); if ( (fad.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) !=0 ) boost::throw_exception( filesystem_error( "boost::filesystem::file_size",