Module: wine Branch: master Commit: bd4b49782ddc4d3ea483561dc15b26d2a2333dd9 URL: https://gitlab.winehq.org/wine/wine/-/commit/bd4b49782ddc4d3ea483561dc15b26d... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Thu Nov 2 00:04:38 2023 -0600 ninput: Use CRT allocation functions. --- dlls/ninput/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/ninput/main.c b/dlls/ninput/main.c index 56d82b08ac5..e89e71968c7 100644 --- a/dlls/ninput/main.c +++ b/dlls/ninput/main.c @@ -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; }