[VFS] Fixed crash on filename extraction from path.

Names are in CP1252 which fails conversion to utf8.
This commit is contained in:
Gliniak
2024-08-31 18:15:13 +02:00
parent 59eed7818f
commit 02f5316562
18 changed files with 44 additions and 29 deletions

View File

@@ -20,14 +20,15 @@
namespace xe {
namespace vfs {
NullEntry::NullEntry(Device* device, Entry* parent, std::string path)
: Entry(device, parent, path) {}
NullEntry::NullEntry(Device* device, Entry* parent, std::string path,
const std::string_view name)
: Entry(device, parent, path, name) {}
NullEntry::~NullEntry() = default;
NullEntry* NullEntry::Create(Device* device, Entry* parent,
const std::string& path) {
auto entry = new NullEntry(device, parent, path);
auto entry = new NullEntry(device, parent, path, "");
entry->create_timestamp_ = 0;
entry->access_timestamp_ = 0;