Commit bd4b4978 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

ninput: Use CRT allocation functions.

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