Huw Davies : rpcrt4: Use CorrDespIncrement to skip over the correlation descriptor.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 13 09:30:04 CDT 2015


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jul 13 13:11:38 2015 +0100

rpcrt4: Use CorrDespIncrement to skip over the correlation descriptor.

---

 dlls/rpcrt4/ndr_marshall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 35c15a1..5414329 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -452,7 +452,7 @@ static inline BOOL IsConformanceOrVariancePresent(PFORMAT_STRING pFormat)
 
 static inline PFORMAT_STRING SkipConformance(const PMIDL_STUB_MESSAGE pStubMsg, const PFORMAT_STRING pFormat)
 {
-    return pStubMsg->fHasNewCorrDesc ? pFormat + 6 : pFormat + 4;
+    return pFormat + 4 + pStubMsg->CorrDespIncrement;
 }
 
 static PFORMAT_STRING ReadConformance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat)




More information about the wine-cvs mailing list