[VFS] Fix an outdated commit of OpenFile that somehow slipped through.
This commit is contained in:
parent
9a8d77137c
commit
0d3039f5ba
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue