GetFileAttributesEx fix
This commit is contained in:
parent
99091a67d4
commit
e9b98c7d2e
|
@ -76,6 +76,7 @@
|
||||||
* almost completely changed the storage interface (for custom storage)
|
* almost completely changed the storage interface (for custom storage)
|
||||||
* added support for hashing pieces in multiple threads
|
* added support for hashing pieces in multiple threads
|
||||||
|
|
||||||
|
* fixed win64 build (GetFileAttributesEx)
|
||||||
* fixed bug when deleting files for magnet links before they had metadata
|
* fixed bug when deleting files for magnet links before they had metadata
|
||||||
|
|
||||||
1.0.7 release
|
1.0.7 release
|
||||||
|
|
|
@ -363,7 +363,7 @@ namespace libtorrent
|
||||||
f.resize(f.size() - 1);
|
f.resize(f.size() - 1);
|
||||||
#endif
|
#endif
|
||||||
WIN32_FILE_ATTRIBUTE_DATA data;
|
WIN32_FILE_ATTRIBUTE_DATA data;
|
||||||
if (!GetFileAttributesEx(f.c_str(), GetFileExInfoStandard, &data))
|
if (!GetFileAttributesEx_(f.c_str(), GetFileExInfoStandard, &data))
|
||||||
{
|
{
|
||||||
ec.assign(GetLastError(), system_category());
|
ec.assign(GetLastError(), system_category());
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue