mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Merge pull request #12936 from vabold/ios-inaccuracy
IOS: Fix return code inaccuracy
This commit is contained in:
commit
1fcb2ee5c1
@ -81,6 +81,12 @@ Result<FileHandle> HostFileSystem::OpenFile(Uid, Gid, const std::string& path, M
|
|||||||
return ResultCode::NoFreeHandle;
|
return ResultCode::NoFreeHandle;
|
||||||
|
|
||||||
const std::string host_path = BuildFilename(path).host_path;
|
const std::string host_path = BuildFilename(path).host_path;
|
||||||
|
if (File::IsDirectory(host_path))
|
||||||
|
{
|
||||||
|
*handle = Handle{};
|
||||||
|
return ResultCode::Invalid;
|
||||||
|
}
|
||||||
|
|
||||||
if (!File::IsFile(host_path))
|
if (!File::IsFile(host_path))
|
||||||
{
|
{
|
||||||
*handle = Handle{};
|
*handle = Handle{};
|
||||||
|
Loading…
Reference in New Issue
Block a user