dinput: Use HeapAlloc/Free instead of alloc/free.

This commit is contained in:
Mike McCormack 2006-11-10 15:40:41 +09:00 committed by Alexandre Julliard
parent d9ea955dbf
commit 53baea13a5

View file

@ -1472,7 +1472,7 @@ static HRESULT WINAPI JoystickAImpl_CreateEffect(LPDIRECTINPUTDEVICE8A iface,
return DI_OK;
#else
new = malloc(sizeof(EffectListItem));
new = HeapAlloc(GetProcessHeap(), 0, sizeof(EffectListItem));
new->next = This->top_effect;
This->top_effect = new;
@ -1734,7 +1734,7 @@ static HRESULT WINAPI JoystickAImpl_SendForceFeedbackCommand(
IDirectInputEffect_Unload(temp->ref);
IDirectInputEffect_Release(temp->ref);
This->top_effect = temp->next;
free(temp);
HeapFree(GetProcessHeap(), 0, temp);
}
} else if (dwFlags == DISFFC_PAUSE || dwFlags == DISFFC_CONTINUE) {
FIXME("No support for Pause or Continue in linux\n");