mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-07 00:29:23 +02:00
hid: Fixed memset in hidJoystickRead().
This commit is contained in:
parent
1c82758c03
commit
dc0bc2ab7b
@ -853,7 +853,7 @@ void hidJoystickRead(JoystickPosition *pos, HidControllerID id, HidControllerJoy
|
|||||||
|
|
||||||
if (pos) {
|
if (pos) {
|
||||||
if (id < 0 || id > 9 || stick >= JOYSTICK_NUM_STICKS) {
|
if (id < 0 || id > 9 || stick >= JOYSTICK_NUM_STICKS) {
|
||||||
memset(pos, 0, sizeof(touchPosition));
|
memset(pos, 0, sizeof(*pos));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user