Robert Shearman : rpcrt4: Fix Variance Callback Functions.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 14 10:50:30 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 2cb3b22c26601342a5567a83abe180c8a58759de
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=2cb3b22c26601342a5567a83abe180c8a58759de

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Jul 14 00:02:44 2006 +0100

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.

---

 dlls/rpcrt4/ndr_marshall.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 1a3f401..b6ff54d 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -464,6 +464,9 @@ PFORMAT_STRING ComputeConformanceOrVaria
     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:




More information about the wine-cvs mailing list