Rob Shearman : rpcrt4: Implement RpcBindingReset.
Alexandre Julliard
julliard at winehq.org
Tue Aug 19 08:46:33 CDT 2008
Module: wine
Branch: master
Commit: 739d89369bf4f4dedb6daa506cfabbc765e84407
URL: http://source.winehq.org/git/wine.git/?a=commit;h=739d89369bf4f4dedb6daa506cfabbc765e84407
Author: Rob Shearman <robertshearman at gmail.com>
Date: Mon Aug 18 21:13:54 2008 +0100
rpcrt4: Implement RpcBindingReset.
---
dlls/rpcrt4/rpc_binding.c | 17 +++++++++++++++++
dlls/rpcrt4/rpcrt4.spec | 2 +-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c
index 4452d30..6a17a8c 100644
--- a/dlls/rpcrt4/rpc_binding.c
+++ b/dlls/rpcrt4/rpc_binding.c
@@ -1013,6 +1013,23 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy(
}
/***********************************************************************
+ * RpcBindingReset (RPCRT4.@)
+ */
+RPC_STATUS RPC_ENTRY RpcBindingReset(RPC_BINDING_HANDLE Binding)
+{
+ RpcBinding *bind = Binding;
+
+ TRACE("(%p)\n", Binding);
+
+ RPCRT4_strfree(bind->Endpoint);
+ bind->Endpoint = NULL;
+ if (bind->Assoc) RpcAssoc_Release(bind->Assoc);
+ bind->Assoc = NULL;
+
+ return RPC_S_OK;
+}
+
+/***********************************************************************
* RpcImpersonateClient (RPCRT4.@)
*
* Impersonates the client connected via a binding handle so that security
diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec
index 1d33c64..e4857d2 100644
--- a/dlls/rpcrt4/rpcrt4.spec
+++ b/dlls/rpcrt4/rpcrt4.spec
@@ -350,7 +350,7 @@
@ stdcall RpcBindingInqAuthInfoW(ptr ptr ptr ptr ptr ptr)
@ stdcall RpcBindingInqObject(ptr ptr)
@ stub RpcBindingInqOption
-@ stub RpcBindingReset
+@ stdcall RpcBindingReset(ptr)
@ stub RpcBindingServerFromClient
@ stdcall RpcBindingSetAuthInfoA(ptr str long long ptr long)
@ stdcall RpcBindingSetAuthInfoExA(ptr str long long ptr long ptr)
More information about the wine-cvs
mailing list