forked from premiere/premiere-libtorrent
more fixes for the windows file_size function
This commit is contained in:
parent
c84a71c1ad
commit
9d426441f1
|
@ -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.
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue