Rob Shearman : rpcrt4: Fix the protid used in ncalrpc tower functions.

Alexandre Julliard julliard at winehq.org
Mon Aug 18 10:46:20 CDT 2008


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

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Sun Aug 10 18:23:50 2008 +0100

rpcrt4: Fix the protid used in ncalrpc tower functions.

The epm tower for the ncalrpc protseq should have a floor with a
protid of EPM_PROTOCOL_PIPE instead of EPM_PROTOCOL_SMB.

---

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

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 9d70088..a797646 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -688,7 +688,7 @@ static size_t rpcrt4_ncalrpc_get_top_of_tower(unsigned char *tower_data,
     tower_data += sizeof(*pipe_floor);
 
     pipe_floor->count_lhs = sizeof(pipe_floor->protid);
-    pipe_floor->protid = EPM_PROTOCOL_SMB;
+    pipe_floor->protid = EPM_PROTOCOL_PIPE;
     pipe_floor->count_rhs = endpoint_size;
 
     memcpy(tower_data, endpoint, endpoint_size);
@@ -713,7 +713,7 @@ static RPC_STATUS rpcrt4_ncalrpc_parse_top_of_tower(const unsigned char *tower_d
     tower_size -= sizeof(*pipe_floor);
 
     if ((pipe_floor->count_lhs != sizeof(pipe_floor->protid)) ||
-        (pipe_floor->protid != EPM_PROTOCOL_SMB) ||
+        (pipe_floor->protid != EPM_PROTOCOL_PIPE) ||
         (pipe_floor->count_rhs > tower_size))
         return EPT_S_NOT_REGISTERED;
 




More information about the wine-cvs mailing list