rpcrt4: Fix Variance Callback Functions.

A callback function for computing the variance puts the computed value 
into the same field as a conformance, so make sure to copy the value 
into pCount before returning from ComputeConformanceOrVariance.
This commit is contained in:
Robert Shearman 2006-07-14 00:02:44 +01:00 committed by Alexandre Julliard
parent a02034a609
commit 2cb3b22c26
1 changed files with 3 additions and 0 deletions

View File

@ -464,6 +464,9 @@ PFORMAT_STRING ComputeConformanceOrVariance(
pStubMsg->StubDesc->apfnExprEval[ofs](pStubMsg);
pStubMsg->StackTop = old_stack_top;
/* the callback function always stores the computed value in MaxCount */
*pCount = pStubMsg->MaxCount;
goto finish_conf;
}
default: