From 02ed4fbb033135844ec0986fb4ca6fac73b45a3e Mon Sep 17 00:00:00 2001 From: Igor Pissolati Date: Thu, 24 Apr 2025 01:02:27 -0300 Subject: [PATCH] Make sure root `windows_path` have slash at the end --- src/windows-emulator/windows_path.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/windows-emulator/windows_path.hpp b/src/windows-emulator/windows_path.hpp index 8429c102..dea40aab 100644 --- a/src/windows-emulator/windows_path.hpp +++ b/src/windows-emulator/windows_path.hpp @@ -117,6 +117,11 @@ class windows_path path.append(folder); } + if (this->is_absolute() && this->folders_.empty()) + { + path.push_back(u'\\'); + } + return path; }