dinput: Avoid casting return value of HeapAlloc calls.

This commit is contained in:
Frédéric Delanoy 2011-10-21 01:35:51 +02:00 committed by Alexandre Julliard
parent f3f24fb5d4
commit 3c15af301c
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ static void init_devices(HWND dialog, IDirectInput8W *lpDI, DIDevicesData *data,
IDirectInput8_EnumDevicesBySemantics(lpDI, NULL, lpdiaf, count_devices, (LPVOID) data, 0);
/* Allocate devices */
data->devices = (DeviceData*) HeapAlloc(GetProcessHeap(), 0, sizeof(DeviceData) * data->ndevices);
data->devices = HeapAlloc(GetProcessHeap(), 0, sizeof(DeviceData) * data->ndevices);
/* Collect and insert */
data->ndevices = 0;