mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #6412 from leoetlino/oops
IOS: Fix invalid FD being returned after an open
This commit is contained in:
@ -500,9 +500,12 @@ IPCCommandResult Kernel::OpenDevice(OpenRequest& request)
|
||||
return Device::Device::GetDefaultReply(IPC_ENOENT);
|
||||
}
|
||||
|
||||
const IPCCommandResult result = device->Open(request);
|
||||
IPCCommandResult result = device->Open(request);
|
||||
if (result.return_value >= IPC_SUCCESS)
|
||||
{
|
||||
m_fdmap[new_fd] = device;
|
||||
result.return_value = new_fd;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user