Robert Shearman : rpcrt4: Implement I_RpcAllocate and I_RpcFree.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 2 04:55:51 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 84ab2e78a4accd4b0783d0de380bea8858b7fb7a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=84ab2e78a4accd4b0783d0de380bea8858b7fb7a

Author: Robert Shearman <rob at codeweavers.com>
Date:   Thu Jun  1 20:24:52 2006 +0100

rpcrt4: Implement I_RpcAllocate and I_RpcFree.

---

 dlls/rpcrt4/rpcrt4.spec   |    4 ++--
 dlls/rpcrt4/rpcrt4_main.c |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec
index 84433f1..16a2bfe 100644
--- a/dlls/rpcrt4/rpcrt4.spec
+++ b/dlls/rpcrt4/rpcrt4.spec
@@ -19,7 +19,7 @@
 @ stdcall IUnknown_QueryInterface_Proxy(ptr ptr ptr)
 @ stdcall IUnknown_Release_Proxy(ptr)
 @ stub I_RpcAbortAsyncCall
-@ stub I_RpcAllocate
+@ stdcall I_RpcAllocate(long)
 @ stub I_RpcAsyncAbortCall
 @ stub I_RpcAsyncSendReceive # NT4
 @ stub I_RpcAsyncSetHandle
@@ -45,7 +45,7 @@ # 9x version of I_RpcBindingSetAsync has
 @ stub I_RpcDeleteMutex
 @ stub I_RpcEnableWmiTrace # wxp
 @ stub I_RpcExceptionFilter # wxp
-@ stub I_RpcFree
+@ stdcall I_RpcFree(ptr)
 @ stdcall I_RpcFreeBuffer(ptr)
 @ stub I_RpcFreePipeBuffer
 @ stub I_RpcGetAssociationContext
diff --git a/dlls/rpcrt4/rpcrt4_main.c b/dlls/rpcrt4/rpcrt4_main.c
index 69e4d6f..092354a 100644
--- a/dlls/rpcrt4/rpcrt4_main.c
+++ b/dlls/rpcrt4/rpcrt4_main.c
@@ -800,3 +800,19 @@ RPC_STATUS RPC_ENTRY DceErrorInqTextA (R
     }
     return status;
 }
+
+/******************************************************************************
+ * I_RpcAllocate   (rpcrt4.@)
+ */
+void * WINAPI I_RpcAllocate(unsigned int Size)
+{
+    return HeapAlloc(GetProcessHeap(), 0, Size);
+}
+
+/******************************************************************************
+ * I_RpcFree   (rpcrt4.@)
+ */
+void WINAPI I_RpcFree(void *Object)
+{
+    HeapFree(GetProcessHeap(), 0, Object);
+}




More information about the wine-cvs mailing list