From bb6feced9fd659d7811a422b93ad4a07e9c6c3da Mon Sep 17 00:00:00 2001 From: Katayma Hirofumi MZ Date: Wed, 13 Nov 2019 12:30:33 +0900 Subject: [PATCH] [SHELLBTRFS] Fix build (don't use C++11 auto) --- dll/shellext/shellbtrfs/devices.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dll/shellext/shellbtrfs/devices.cpp b/dll/shellext/shellbtrfs/devices.cpp index b17f9b25823..f044151721e 100755 --- a/dll/shellext/shellbtrfs/devices.cpp +++ b/dll/shellext/shellbtrfs/devices.cpp @@ -237,9 +237,12 @@ static void find_devices(HWND hwnd, const GUID* guid, const mountmgr& mm, vector free(dli); } else { try { - auto v = mm.query_points(L"", L"", wstring_view(path.Buffer, path.Length / sizeof(WCHAR))); + std::vector v; + v = mm.query_points(L"", L"", wstring_view(path.Buffer, path.Length / sizeof(WCHAR))); - for (const auto& p : v) { + for (size_t i = 0; i < v.size(); ++i) + { + const mountmgr_point& p = v[i]; if (p.symlink.length() == 14 && p.symlink.substr(0, dosdevices.length()) == dosdevices && p.symlink[13] == ':') { WCHAR dr[3]; -- 2.17.1