Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIDv4: Check Device Not Null Before Attaching #12203

Merged

Conversation

deReeperJosh
Copy link
Contributor

@deReeperJosh deReeperJosh commented Sep 26, 2023

Fairly self-explanatory PR - the GetDeviceByIOSID method can return null, and I have noticed this happening when a usb device is removed during gameplay (for Skylanders or Disney Infinity for example) where the core still attempts to read from the USB device while the remove hooks are being thrown. Will prevent crashes when doing this in-game.

@mandar1jn
Copy link
Contributor

I can confirm this works. Found the same solution but too slow

@AdmiralCurtiss AdmiralCurtiss merged commit 467c743 into dolphin-emu:master Sep 27, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants