[PATCH 12/14] dlls/joy.cpl: use correct integral type

Eric Pouech eric.pouech at gmail.com
Mon Jan 31 07:16:38 CST 2022


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 dlls/joy.cpl/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c
index 081dcf2dc74..8ea3892b750 100644
--- a/dlls/joy.cpl/main.c
+++ b/dlls/joy.cpl/main.c
@@ -789,7 +789,7 @@ static BOOL CALLBACK ff_effects_callback(const DIEFFECTINFOW *pdei, void *pvRef)
     HRESULT hr;
     DIEFFECT dieffect;
     DWORD axes[2] = {DIJOFS_X, DIJOFS_Y};
-    int direction[2] = {0, 0};
+    LONG direction[2] = {0, 0};
     int num_axes = 2;
     struct Joystick *joystick = pvRef;
     DIRAMPFORCE rforce;




More information about the wine-devel mailing list