forked from premiere/premiere-libtorrent
attempt to fix bug in storage on windows where ENOENT was not properly caught
This commit is contained in:
parent
3fbdded9f3
commit
8e206c7d0d
|
@ -2222,7 +2222,11 @@ namespace libtorrent
|
|||
if (num_read < 0)
|
||||
{
|
||||
if (m_storage->error()
|
||||
#ifdef TORRENT_WINDOWS
|
||||
&& m_storage->error() != error_code(ERROR_FILE_NOT_FOUND, get_system_category()))
|
||||
#else
|
||||
&& m_storage->error() != error_code(ENOENT, get_posix_category()))
|
||||
#endif
|
||||
{
|
||||
std::cerr << m_storage->error().message() << std::endl;
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue