fs/FileSystem, ...: use AllocatedPath::FromFS(string_view)

This commit is contained in:
Max Kellermann
2020-04-03 15:57:53 +02:00
parent 91c75a133f
commit 56b4b010d6
4 changed files with 4 additions and 5 deletions

View File

@@ -303,7 +303,7 @@ GetAppBaseDir() noexcept
if (ret == app.size() && GetLastError() == ERROR_INSUFFICIENT_BUFFER)
return nullptr;
auto app_path = AllocatedPath::FromFS(app.data());
auto app_path = AllocatedPath::FromFS(PathTraitsFS::string_view(app.data(), ret));
return app_path.GetDirectoryName().GetDirectoryName();
}