From d2c15ed01bd0a0766b0b4f6e364a1ad58b333141 Mon Sep 17 00:00:00 2001 From: Dan Hipschman Date: Mon, 18 Jun 2007 18:41:04 -0700 Subject: [PATCH] rpcrt4: Fix typo in union buffer size calculation. --- 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 3f8742cfaa8..adf7aba169c 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 */