Commit 53baea13 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent d9ea955d
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment