summaryrefslogtreecommitdiffstats
path: root/src/libtorrent-rasterbar-1-getfileattributesex.patch
blob: ec7abc61ce3abb79fe4d114e4f33c2019249bd31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
This file is part of MXE.
See index.html for further information.

From 679ad4e2331484fda9da250cb269779daf703698 Mon Sep 17 00:00:00 2001
From: Boris Nagaev <bnagaev@gmail.com>
Date: Sat, 29 Aug 2015 10:28:59 +0200
Subject: [PATCH] file.cpp: use defined GetFileAttributesEx

This macro was defined as GetFileAttributesEx_ but used
as GetFileAttributesEx. Strange.
---
 src/file.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/file.cpp b/src/file.cpp
index a3219b0..0276033 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -208,7 +208,7 @@ namespace libtorrent
 		std::string f = convert_to_native(inf);
 #endif
 		WIN32_FILE_ATTRIBUTE_DATA data;
-		if (!GetFileAttributesEx(f.c_str(), GetFileExInfoStandard, &data))
+		if (!GetFileAttributesEx_(f.c_str(), GetFileExInfoStandard, &data))
 		{
 			ec.assign(GetLastError(), get_system_category());
 			return;
-- 
1.7.10.4