dinput: Initialize device count to 0 in config.c.

This commit is contained in:
Lucas Fialho Zawacki 2011-09-13 02:54:58 -03:00 committed by Alexandre Julliard
parent c5d45e8b88
commit 03fa9f627b
1 changed files with 1 additions and 0 deletions

View File

@ -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 */