Win32: Fix message reported by VS 2022

(cherry picked from commit acf0c10e7a)
This commit is contained in:
Camilla Löwy 2022-04-06 23:21:28 +02:00
parent 1b3b2108e3
commit c8be8606f0

View File

@ -609,7 +609,7 @@ int _glfwPlatformPollJoystick(_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,