diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c index 4452d30182c..6a17a8c31ea 100644 --- a/dlls/rpcrt4/rpc_binding.c +++ b/dlls/rpcrt4/rpc_binding.c @@ -1012,6 +1012,23 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy( return RPC_S_OK; } +/*********************************************************************** + * 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.@) * diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec index 1d33c64f100..e4857d2aca4 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)