diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-08-30 00:51:19 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-08-31 21:02:25 (GMT) |
commit | 30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c (patch) | |
tree | 838c24997a18a30823454f797b9d9e8a8a3e795a /src/libtorrent-rasterbar-1-getfileattributesex.patch | |
parent | 83f9075394a520b0645c5bd4d5c67d3470cb44cc (diff) | |
download | mxe-30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c.zip mxe-30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c.tar.gz mxe-30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c.tar.bz2 |
add package libtorrent-rasterbar
Diffstat (limited to 'src/libtorrent-rasterbar-1-getfileattributesex.patch')
-rw-r--r-- | src/libtorrent-rasterbar-1-getfileattributesex.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/libtorrent-rasterbar-1-getfileattributesex.patch b/src/libtorrent-rasterbar-1-getfileattributesex.patch new file mode 100644 index 0000000..ec7abc6 --- /dev/null +++ b/src/libtorrent-rasterbar-1-getfileattributesex.patch @@ -0,0 +1,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 + |