Rob Shearman : rpcrt4: Ignore the network address for ncalrpc in is_epm_destination_local.

Alexandre Julliard julliard at winehq.org
Mon Nov 16 11:44:02 CST 2009


Module: wine
Branch: master
Commit: b49512ecaf202e3380925bc0bb56e81f057314c7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b49512ecaf202e3380925bc0bb56e81f057314c7

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Mon Nov 16 14:39:48 2009 +0000

rpcrt4: Ignore the network address for ncalrpc in is_epm_destination_local.

The network address is ignored in the transport code, so it doesn't
make sense to take it into account here.

---

 dlls/rpcrt4/rpc_epmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/rpcrt4/rpc_epmap.c b/dlls/rpcrt4/rpc_epmap.c
index c1b8d1d..b81367e 100644
--- a/dlls/rpcrt4/rpc_epmap.c
+++ b/dlls/rpcrt4/rpc_epmap.c
@@ -108,8 +108,8 @@ static inline BOOL is_epm_destination_local(RPC_BINDING_HANDLE handle)
     const char *protseq = bind->Protseq;
     const char *network_addr = bind->NetworkAddr;
 
-    return ((!strcmp(protseq, "ncalrpc") && !network_addr) ||
-            (!strcmp(protseq, "ncacn_np") &&
+    return (!strcmp(protseq, "ncalrpc") ||
+           (!strcmp(protseq, "ncacn_np") &&
                 (!network_addr || !strcmp(network_addr, "."))));
 }
 




More information about the wine-cvs mailing list