Rémi Bernon : ole32: Use CRT allocation for MIDL_user_(allocate/free).
Module: wine Branch: master Commit: af43e72860722794977d8892b05c0f05136d6299 URL: https://gitlab.winehq.org/wine/wine/-/commit/af43e72860722794977d8892b05c0f0... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Thu Jan 12 20:32:12 2023 +0100 ole32: Use CRT allocation for MIDL_user_(allocate/free). To match combase allocations, as for instance we're freeing pointers returned from InternalIrotRevoke, which are allocated using combase MIDL_user_allocate. --- dlls/ole32/moniker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/moniker.c b/dlls/ole32/moniker.c index 09266a33aba..be6150bc7b6 100644 --- a/dlls/ole32/moniker.c +++ b/dlls/ole32/moniker.c @@ -1363,10 +1363,10 @@ HRESULT MonikerMarshal_Create(IMoniker *inner, IUnknown **outer) void * __RPC_USER MIDL_user_allocate(SIZE_T size) { - return HeapAlloc(GetProcessHeap(), 0, size); + return malloc(size); } void __RPC_USER MIDL_user_free(void *p) { - HeapFree(GetProcessHeap(), 0, p); + free(p); }
participants (1)
-
Alexandre Julliard