Fixing empty VFS devices.
This commit is contained in:
parent
5ca8caa9a7
commit
d0713708e2
|
@ -31,6 +31,11 @@ Entry* Device::ResolvePath(const char* path) {
|
||||||
|
|
||||||
XELOGFS("Device::ResolvePath(%s)", path);
|
XELOGFS("Device::ResolvePath(%s)", path);
|
||||||
|
|
||||||
|
if (!root_entry_) {
|
||||||
|
// No content at all.
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
// Walk the path, one separator at a time.
|
// Walk the path, one separator at a time.
|
||||||
auto entry = root_entry_.get();
|
auto entry = root_entry_.get();
|
||||||
auto path_parts = xe::split_path(path);
|
auto path_parts = xe::split_path(path);
|
||||||
|
|
Loading…
Reference in New Issue