rpc: Skip over the right number of bytes in new correlation descriptors.

Skip over 6 bytes of the format descriptor if new correlation
descriptors are being used, instead of 4.
This commit is contained in:
Robert Shearman 2006-01-20 16:15:11 +01:00 committed by Alexandre Julliard
parent 98734cc894
commit 5b629e9509
1 changed files with 12 additions and 3 deletions

View File

@ -310,7 +310,10 @@ PFORMAT_STRING ReadConformance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pForm
pStubMsg->MaxCount = NDR_LOCAL_UINT32_READ(pStubMsg->Buffer);
pStubMsg->Buffer += 4;
TRACE("unmarshalled conformance is %ld\n", pStubMsg->MaxCount);
return pFormat+4;
if (pStubMsg->fHasNewCorrDesc)
return pFormat+6;
else
return pFormat+4;
}
static inline PFORMAT_STRING ReadVariance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat)
@ -330,7 +333,10 @@ static inline PFORMAT_STRING ReadVariance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_S
TRACE("variance is %ld\n", pStubMsg->ActualCount);
done:
return pFormat+4;
if (pStubMsg->fHasNewCorrDesc)
return pFormat+6;
else
return pFormat+4;
}
PFORMAT_STRING ComputeConformanceOrVariance(
@ -444,7 +450,10 @@ done_conf_grab:
finish_conf:
TRACE("resulting conformance is %ld\n", *pCount);
return pFormat+4;
if (pStubMsg->fHasNewCorrDesc)
return pFormat+6;
else
return pFormat+4;
}