https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bb6feced9fd659d7811a4…
commit bb6feced9fd659d7811a422b93ad4a07e9c6c3da
Author: Katayma Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Nov 13 12:30:33 2019 +0900
Commit: Katayma Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Wed Nov 13 12:30:33 2019 +0900
[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<mountmgr_point> 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];