ninput: Use CRT allocation functions.
This commit is contained in:
parent
76205649de
commit
bd4b49782d
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue