[SHELLBTRFS] Replace emplace_back by something less efficient if not avaible
authorPierre Schweitzer <pierre@reactos.org>
Tue, 12 Nov 2019 22:29:08 +0000 (23:29 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 12 Nov 2019 22:29:08 +0000 (23:29 +0100)
dll/shellext/shellbtrfs/mountmgr_local.cpp

index 0619623..45a47e6 100644 (file)
@@ -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;