https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5f779048d30bb7fc44e855289c3680706687ad66

commit 5f779048d30bb7fc44e855289c3680706687ad66
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Tue Nov 12 23:29:08 2019 +0100
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Tue Nov 12 23:29:08 2019 +0100

    [SHELLBTRFS] Replace emplace_back by something less efficient if not avaible
---
 dll/shellext/shellbtrfs/mountmgr_local.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dll/shellext/shellbtrfs/mountmgr_local.cpp 
b/dll/shellext/shellbtrfs/mountmgr_local.cpp
index 061962369ff..45a47e68e15 100644
--- a/dll/shellext/shellbtrfs/mountmgr_local.cpp
+++ b/dll/shellext/shellbtrfs/mountmgr_local.cpp
@@ -217,7 +217,11 @@ vector<mountmgr_point> mountmgr::query_points(const 
wstring_view& symlink, const
         if (mmps->MountPoints[i].DeviceNameLength)
             mpdn = wstring_view((WCHAR*)((uint8_t*)mmps + 
mmps->MountPoints[i].DeviceNameOffset), mmps->MountPoints[i].DeviceNameLength / 
sizeof(WCHAR));
 
+#ifndef __REACTOS__
         v.emplace_back(mpsl, mpuid, mpdn);
+#else
+        v.push_back(mountmgr_point(mpsl, mpuid, mpdn));
+#endif
     }
 
     return v;

Reply via email to