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; }