Commit 6dce9733d98972817e968dee5edd216d31450b2e

Sam Lantinga 2019-11-22T16:23:37

Use SDL_zeroa() appropriately

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/windows/SDL_dinputjoystick.c b/src/joystick/windows/SDL_dinputjoystick.c
index 7182bf8..13bd615 100644
--- a/src/joystick/windows/SDL_dinputjoystick.c
+++ b/src/joystick/windows/SDL_dinputjoystick.c
@@ -259,7 +259,7 @@ WIN_IsXInputDevice(const GUID* pGuidProductFromDirectInput)
     VARIANT                 var;
     HRESULT                 hr;
 
-    SDL_zero(pDevices);
+    SDL_zeroa(pDevices);
 
     // Create WMI
     hr = CoCreateInstance(&CLSID_WbemLocator,