From c8d787dba864f4311f385a6121a072cbb4e2d471 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 7 Jun 2011 20:45:33 +0200 Subject: [PATCH] rpcrt4: Add support for the argument size of varying arrays. --- dlls/rpcrt4/ndr_stubless.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index 173ff61fbd3..f7bd67058fb 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -1001,14 +1001,17 @@ static DWORD calc_arg_size(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat) FIXME("Unhandled conformant description\n"); break; case RPC_FC_CARRAY: + case RPC_FC_CVARRAY: size = *(const WORD*)(pFormat + 2); ComputeConformance(pStubMsg, NULL, pFormat + 4, 0); size *= pStubMsg->MaxCount; break; case RPC_FC_SMFARRAY: + case RPC_FC_SMVARRAY: size = *(const WORD*)(pFormat + 2); break; case RPC_FC_LGFARRAY: + case RPC_FC_LGVARRAY: size = *(const DWORD*)(pFormat + 2); break; case RPC_FC_BOGUS_ARRAY: