diff options
Diffstat (limited to 'src/lib/util/zippath.cpp')
-rw-r--r-- | src/lib/util/zippath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/zippath.cpp b/src/lib/util/zippath.cpp index 6fad365d6fc..8c37b3d72ad 100644 --- a/src/lib/util/zippath.cpp +++ b/src/lib/util/zippath.cpp @@ -211,7 +211,7 @@ std::error_condition zippath_resolve(std::string_view path, osd::directory::entr auto i = apath.find_last_not_of(PATH_SEPARATOR); if (i == std::string::npos) break; - apath = apath.erase(std::min<decltype(i)>(i + 1, 2)); + apath = apath.erase(std::max<decltype(i)>(i + 1, 2)); // don't erase drive letter apath_trimmed = apath; |