[4/4] rpcrt4: Fix typo in union buffer size calculation

Dan Hipschman dsh at linux.ucla.edu
Mon Jun 18 20:41:04 CDT 2007


This fixes a typo that causes the incorrect value to be calculated for
the buffer size.

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

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 3f8742c..adf7aba 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -4369,7 +4369,7 @@ void WINAPI NdrEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
     pFormat++;
 
     ALIGN_LENGTH(pStubMsg->BufferLength, increment);
-    switch_value = get_discriminant(switch_value, pMemory);
+    switch_value = get_discriminant(switch_type, pMemory);
     TRACE("got switch value 0x%x\n", switch_value);
 
     /* Add discriminant size */



More information about the wine-patches mailing list