Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
170dd5ff
Commit
170dd5ff
authored
Sep 05, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Only start the RpcSs process for handles to the local server.
parent
55f12a3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
rpc_epmap.c
dlls/rpcrt4/rpc_epmap.c
+15
-2
No files found.
dlls/rpcrt4/rpc_epmap.c
View file @
170dd5ff
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment