=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ole32/tests: Use IUnknown_Release instead of deprecated WdtpInterfacePointer_UserFree.

Alexandre Julliard julliard at winehq.org
Thu Sep 27 15:39:09 CDT 2012


Module: wine
Branch: master
Commit: fb383cd5a6869daa4980030b7ae692f244582b5a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fb383cd5a6869daa4980030b7ae692f244582b5a

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Sep 27 20:32:25 2012 +0200

ole32/tests: Use IUnknown_Release instead of deprecated WdtpInterfacePointer_UserFree.

---

 dlls/ole32/tests/usrmarshal.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/ole32/tests/usrmarshal.c b/dlls/ole32/tests/usrmarshal.c
index ed09558..6314006 100644
--- a/dlls/ole32/tests/usrmarshal.c
+++ b/dlls/ole32/tests/usrmarshal.c
@@ -551,7 +551,6 @@ static IStream Test_Stream = { &TestStream_Vtbl };
 ULONG __RPC_USER WdtpInterfacePointer_UserSize(ULONG *, ULONG, ULONG, IUnknown *, REFIID);
 unsigned char * __RPC_USER WdtpInterfacePointer_UserMarshal(ULONG *, ULONG, unsigned char *, IUnknown *, REFIID);
 unsigned char * __RPC_USER WdtpInterfacePointer_UserUnmarshal(ULONG *, unsigned char *, IUnknown **, REFIID);
-void __RPC_USER WdtpInterfacePointer_UserFree(IUnknown *);
 
 static void marshal_WdtpInterfacePointer(DWORD umcb_ctx, DWORD ctx)
 {
@@ -624,7 +623,7 @@ static void marshal_WdtpInterfacePointer(DWORD umcb_ctx, DWORD ctx)
     ok(unk2 != NULL, "IUnknown object didn't unmarshal properly\n");
     HeapFree(GetProcessHeap(), 0, buffer);
     init_user_marshal_cb(&umcb, &stub_msg, &rpc_msg, NULL, 0, MSHCTX_INPROC);
-    WdtpInterfacePointer_UserFree(unk2);
+    IUnknown_Release(unk2);
 }
 
 static void test_marshal_WdtpInterfacePointer(void)




More information about the wine-cvs mailing list