Commit 612a86ebad52e97987e45dcc3305d7e8db3a0569

Ozkan Sezer 2022-09-05T20:47:00

HIDAPI_DriverPS3_UpdateEffects: kill bad use of & operator on effects[]

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/hidapi/SDL_hidapi_ps3.c b/src/joystick/hidapi/SDL_hidapi_ps3.c
index be21cbb..1af5c9b 100644
--- a/src/joystick/hidapi/SDL_hidapi_ps3.c
+++ b/src/joystick/hidapi/SDL_hidapi_ps3.c
@@ -169,7 +169,7 @@ HIDAPI_DriverPS3_UpdateEffects(SDL_HIDAPI_Device *device)
 
     effects[9] = (0x01 << (1+(ctx->player_index % 4)));
 
-    return HIDAPI_DriverPS3_SendJoystickEffect(device, ctx->joystick, &effects, sizeof(effects));
+    return HIDAPI_DriverPS3_SendJoystickEffect(device, ctx->joystick, effects, sizeof(effects));
 }
 
 static void