https://bugs.winehq.org/show_bug.cgi?id=38766
Christoph von Wittich Christoph@ApiViewer.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Christoph@ApiViewer.de
--- Comment #8 from Christoph von Wittich Christoph@ApiViewer.de --- No idea if this is the right approach. I wasn't able to test it yet.
RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingServerFromClient( RPC_BINDING_HANDLE ClientBinding, RPC_BINDING_HANDLE *ServerBinding ) { RpcBinding *bind = ClientBinding; RpcBinding *NewBinding;
if (!bind) bind = I_RpcGetCurrentCallHandle();
if (!bind->server) return RPC_S_INVALID_BINDING;
RPCRT4_AllocBinding(&NewBinding, TRUE);
NewBinding->NetworkAddr = RPCRT4_strndupA(bind->FromConn->server_binding->NetworkAddr, -1); NewBinding->Endpoint = RPCRT4_strndupA(bind->FromConn->server_binding->Endpoint, -1);
*ServerBinding = NewBinding;
return RPC_S_OK; }