From da6a50d93f33fc85c4b9f636d4265f1860bd9b43 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 5 May 2005 13:24:39 +0000 Subject: [PATCH] directly use HeapAlloc/Free in midl_user_allocate and midl_user_free instead of the depreciated GlobalAlloc/Free functions svn path=/trunk/; revision=14999 --- reactos/lib/advapi32/service/scm.c | 4 ++-- reactos/lib/setupapi/rpc.c | 4 ++-- reactos/services/umpnpmgr/umpnpmgr.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/lib/advapi32/service/scm.c b/reactos/lib/advapi32/service/scm.c index 9d1e6ef9501..566ead1100f 100644 --- a/reactos/lib/advapi32/service/scm.c +++ b/reactos/lib/advapi32/service/scm.c @@ -948,12 +948,12 @@ UnlockServiceDatabase(SC_LOCK ScLock) void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len) { - return GlobalAlloc(GPTR,len); + return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len); } void __RPC_USER midl_user_free(void __RPC_FAR * ptr) { - GlobalFree(ptr); + HeapFree(GetProcessHeap(), 0, ptr); } /* EOF */ diff --git a/reactos/lib/setupapi/rpc.c b/reactos/lib/setupapi/rpc.c index cb3b08bc7c0..1f7ab620a02 100644 --- a/reactos/lib/setupapi/rpc.c +++ b/reactos/lib/setupapi/rpc.c @@ -69,14 +69,14 @@ PnpUnbindLocalBindingHandle(VOID) void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len) { - return GlobalAlloc(GPTR, len); + return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len); } void __RPC_USER midl_user_free(void __RPC_FAR * ptr) { - GlobalFree(ptr); + HeapFree(GetProcessHeap(), 0, ptr); } /* EOF */ diff --git a/reactos/services/umpnpmgr/umpnpmgr.c b/reactos/services/umpnpmgr/umpnpmgr.c index f22ab5d3422..1d7b16b4ded 100644 --- a/reactos/services/umpnpmgr/umpnpmgr.c +++ b/reactos/services/umpnpmgr/umpnpmgr.c @@ -103,13 +103,13 @@ RpcServerThread(LPVOID lpParameter) void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len) { - return GlobalAlloc(GPTR, len); + return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len); } void __RPC_USER midl_user_free(void __RPC_FAR * ptr) { - GlobalFree(ptr); + HeapFree(GetProcessHeap(), 0, ptr); }