Selaa lähdekoodia

Win32: Fix message reported by VS 2022

Camilla Löwy 3 vuotta sitten
vanhempi
commit
acf0c10e7a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/win32_joystick.c

+ 1 - 1
src/win32_joystick.c

@@ -607,7 +607,7 @@ int _glfwPollJoystickWin32(_GLFWjoystick* js, int mode)
     {
         int i, ai = 0, bi = 0, pi = 0;
         HRESULT result;
-        DIJOYSTATE state;
+        DIJOYSTATE state = {0};
 
         IDirectInputDevice8_Poll(js->win32.device);
         result = IDirectInputDevice8_GetDeviceState(js->win32.device,