Alexandre Julliard : rpcrt4: Don' t marshall out-only parameters in the old-style stubless marshaller.

Alexandre Julliard julliard at winehq.org
Fri Jun 10 11:16:20 CDT 2011


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun  7 20:38:50 2011 +0200

rpcrt4: Don't marshall out-only parameters in the old-style stubless marshaller.

---

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

diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c
index 171d74d..45cfc94 100644
--- a/dlls/rpcrt4/ndr_stubless.c
+++ b/dlls/rpcrt4/ndr_stubless.c
@@ -522,12 +522,12 @@ void client_do_args_old_format(PMIDL_STUB_MESSAGE pStubMsg,
             {
             case PROXY_CALCSIZE:
                 if (pParam->param_direction == RPC_FC_IN_PARAM ||
-                    pParam->param_direction & RPC_FC_IN_OUT_PARAM)
+                    pParam->param_direction == RPC_FC_IN_OUT_PARAM)
                     call_buffer_sizer(pStubMsg, *(unsigned char **)pArg, pTypeFormat);
                 break;
             case PROXY_MARSHAL:
                 if (pParam->param_direction == RPC_FC_IN_PARAM ||
-                    pParam->param_direction & RPC_FC_IN_OUT_PARAM)
+                    pParam->param_direction == RPC_FC_IN_OUT_PARAM)
                     call_marshaller(pStubMsg, *(unsigned char **)pArg, pTypeFormat);
                 break;
             case PROXY_UNMARSHAL:




More information about the wine-cvs mailing list