ninput: Use CRT allocation functions.

This commit is contained in:
Alex Henrie 2023-11-02 00:04:38 -06:00 committed by Alexandre Julliard
parent 76205649de
commit bd4b49782d

View file

@ -21,7 +21,6 @@
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "interactioncontext.h"
@ -46,7 +45,7 @@ HRESULT WINAPI CreateInteractionContext(HINTERACTIONCONTEXT *handle)
if (!handle)
return E_POINTER;
if (!(context = heap_alloc(sizeof(*context))))
if (!(context = malloc(sizeof(*context))))
return E_OUTOFMEMORY;
context->filter_pointers = TRUE;
@ -67,7 +66,7 @@ HRESULT WINAPI DestroyInteractionContext(HINTERACTIONCONTEXT handle)
if (!context)
return E_HANDLE;
heap_free(context);
free(context);
return S_OK;
}