From e9b98c7d2e154c65da13e70bf56f9b2a0161b36f Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 18 Dec 2015 17:44:04 -0500 Subject: [PATCH] GetFileAttributesEx fix --- ChangeLog | 1 + src/file.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 10c797932..28478f8cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -76,6 +76,7 @@ * almost completely changed the storage interface (for custom storage) * added support for hashing pieces in multiple threads + * fixed win64 build (GetFileAttributesEx) * fixed bug when deleting files for magnet links before they had metadata 1.0.7 release diff --git a/src/file.cpp b/src/file.cpp index ce73bf579..aee9ec95e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -363,7 +363,7 @@ namespace libtorrent f.resize(f.size() - 1); #endif WIN32_FILE_ATTRIBUTE_DATA data; - if (!GetFileAttributesEx(f.c_str(), GetFileExInfoStandard, &data)) + if (!GetFileAttributesEx_(f.c_str(), GetFileExInfoStandard, &data)) { ec.assign(GetLastError(), system_category()); return;