[VFS/Posix] Fix Rename to properly handle guest paths
And ensure string_views aren't pointing at freed memory by saving a reference to the result of path_to_utf8
This commit is contained in:
committed by
Radosław Gliński
parent
dce4d38c0a
commit
4b6ac45650
@@ -141,7 +141,8 @@ class Entry {
|
||||
return nullptr;
|
||||
}
|
||||
virtual bool DeleteEntryInternal(Entry* entry) = 0;
|
||||
virtual void RenameEntryInternal(const std::filesystem::path file_path) {}
|
||||
virtual void RenameEntryInternal(
|
||||
const std::vector<std::string_view>& path_parts) {}
|
||||
|
||||
xe::global_critical_region global_critical_region_;
|
||||
Device* device_;
|
||||
|
||||
Reference in New Issue
Block a user