[VFS] Fix an outdated commit of OpenFile that somehow slipped through.
This commit is contained in:
@@ -289,7 +289,7 @@ X_STATUS VirtualFileSystem::OpenFile(const std::string& path,
|
|||||||
if (!entry) {
|
if (!entry) {
|
||||||
// Create if needed (either new or as a replacement).
|
// Create if needed (either new or as a replacement).
|
||||||
entry = CreatePath(
|
entry = CreatePath(
|
||||||
path, !directory ? kFileAttributeNormal : kFileAttributeDirectory);
|
path, !is_directory ? kFileAttributeNormal : kFileAttributeDirectory);
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
return X_STATUS_ACCESS_DENIED;
|
return X_STATUS_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user