mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 04:46:45 +00:00
dinput: Use HeapAlloc/Free instead of alloc/free.
This commit is contained in:
parent
d9ea955dbf
commit
53baea13a5
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue