dinput: Initialize device count to 0 in config.c.
This commit is contained in:
parent
c5d45e8b88
commit
03fa9f627b
|
@ -191,6 +191,7 @@ static void init_devices(HWND dialog, IDirectInput8W *lpDI, DIDevicesData *data,
|
|||
int i;
|
||||
|
||||
/* Count devices */
|
||||
data->ndevices = 0;
|
||||
IDirectInput8_EnumDevicesBySemantics(lpDI, NULL, lpdiaf, count_devices, (LPVOID) data, 0);
|
||||
|
||||
/* Allocate devices */
|
||||
|
|
Loading…
Reference in New Issue