more fixes for the windows file_size function

This commit is contained in:
Arvid Norberg 2005-10-17 21:09:42 +00:00
parent c84a71c1ad
commit 9d426441f1
2 changed files with 2 additions and 1 deletions

View File

@ -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 torrent state, allocating
* added a new alert, metadata_failed_alert * added a new alert, metadata_failed_alert
* changed the interface to session::add_torrent for soem speed optimizations. * changed the interface to session::add_torrent for soem speed optimizations.

View File

@ -153,7 +153,7 @@ namespace
::GetFileExInfoStandard, &fad ) ) ::GetFileExInfoStandard, &fad ) )
boost::throw_exception( filesystem_error( boost::throw_exception( filesystem_error(
"boost::filesystem::file_size", "boost::filesystem::file_size",
ph, fs::detail::system_error_code() ) ); ph, detail::system_error_code() ) );
if ( (fad.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) !=0 ) if ( (fad.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) !=0 )
boost::throw_exception( filesystem_error( boost::throw_exception( filesystem_error(
"boost::filesystem::file_size", "boost::filesystem::file_size",