Io: Prevent error when file locked for writing.

When reopening with file sharing flags fixed it, we shouldn't set error.
That would cause the open to still fail.
This commit is contained in:
Unknown W. Brackets
2018-05-08 18:25:15 -07:00
parent 8f5a23b6a8
commit 3c698a5ddb
+1 -1
View File
@@ -252,7 +252,7 @@ bool DirectoryFileHandle::Open(std::string &basePath, std::string &fileName, Fil
I18NCategory *err = GetI18NCategory("Error");
host->NotifyUserMessage(err->T("Disk full while writing data"));
error = SCE_KERNEL_ERROR_ERRNO_NO_PERM;
} else {
} else if (!success) {
error = SCE_KERNEL_ERROR_ERRNO_FILE_NOT_FOUND;
}
}