mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Merge pull request #12309 from Tilka/ios_crash
IOS: fix crash when closing invalid file descriptor
This commit is contained in:
commit
3a3a935b9a
@ -654,7 +654,7 @@ std::shared_ptr<Device> EmulationKernel::GetDeviceByName(std::string_view device
|
||||
return iterator != m_device_map.end() ? iterator->second : nullptr;
|
||||
}
|
||||
|
||||
std::shared_ptr<Device> EmulationKernel::GetDeviceByFileDescriptor(const int fd)
|
||||
std::shared_ptr<Device> EmulationKernel::GetDeviceByFileDescriptor(const u32 fd)
|
||||
{
|
||||
if (fd < IPC_MAX_FDS)
|
||||
return m_fdmap[fd];
|
||||
|
@ -154,7 +154,7 @@ public:
|
||||
// Get a resource manager by name.
|
||||
// This only works for devices which are part of the device map.
|
||||
std::shared_ptr<Device> GetDeviceByName(std::string_view device_name);
|
||||
std::shared_ptr<Device> GetDeviceByFileDescriptor(const int fd);
|
||||
std::shared_ptr<Device> GetDeviceByFileDescriptor(const u32 fd);
|
||||
|
||||
std::shared_ptr<FSDevice> GetFSDevice();
|
||||
std::shared_ptr<ESDevice> GetESDevice();
|
||||
|
Loading…
x
Reference in New Issue
Block a user