From 3c698a5ddb798c3c4a5e762c600a3553138da43c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 8 May 2018 18:25:15 -0700 Subject: [PATCH] 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. --- Core/FileSystems/DirectoryFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/FileSystems/DirectoryFileSystem.cpp b/Core/FileSystems/DirectoryFileSystem.cpp index 00177fae73..71e91d06d8 100644 --- a/Core/FileSystems/DirectoryFileSystem.cpp +++ b/Core/FileSystems/DirectoryFileSystem.cpp @@ -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; } }