mirror of
https://github.com/reactos/wine.git
synced 2025-02-08 21:27:31 +00:00
rpcrt4: Only start the RpcSs process for handles to the local server.
This commit is contained in:
parent
55f12a3b63
commit
170dd5ff8d
@ -114,6 +114,17 @@ static BOOL start_rpcss(void)
|
||||
return rslt;
|
||||
}
|
||||
|
||||
static inline BOOL is_epm_destination_local(RPC_BINDING_HANDLE handle)
|
||||
{
|
||||
RpcBinding *bind = (RpcBinding *)handle;
|
||||
const char *protseq = bind->Protseq;
|
||||
const char *network_addr = bind->NetworkAddr;
|
||||
|
||||
return ((!strcmp(protseq, "ncalrpc") && !network_addr) ||
|
||||
(!strcmp(protseq, "ncacn_np") &&
|
||||
(!network_addr || !strcmp(network_addr, "."))));
|
||||
}
|
||||
|
||||
static RPC_STATUS get_epm_handle_client(RPC_BINDING_HANDLE handle, RPC_BINDING_HANDLE *epm_handle)
|
||||
{
|
||||
RpcBinding *bind = (RpcBinding *)handle;
|
||||
@ -243,7 +254,8 @@ RPC_STATUS WINAPI RpcEpRegisterA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR *Bind
|
||||
status2 = GetExceptionCode();
|
||||
}
|
||||
__ENDTRY
|
||||
if (status2 == RPC_S_SERVER_UNAVAILABLE)
|
||||
if (status2 == RPC_S_SERVER_UNAVAILABLE &&
|
||||
is_epm_destination_local(handle))
|
||||
{
|
||||
if (start_rpcss())
|
||||
continue;
|
||||
@ -407,7 +419,8 @@ RPC_STATUS WINAPI RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE
|
||||
status2 = GetExceptionCode();
|
||||
}
|
||||
__ENDTRY
|
||||
if (status2 == RPC_S_SERVER_UNAVAILABLE)
|
||||
if (status2 == RPC_S_SERVER_UNAVAILABLE &&
|
||||
is_epm_destination_local(handle))
|
||||
{
|
||||
if (start_rpcss())
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user