rpcrt4: Calculate size of FC_STRUCT arguments correctly.

This commit is contained in:
Huw Davies 2006-06-23 12:47:34 +01:00 committed by Alexandre Julliard
parent f4e8169e9a
commit 93fb9d10f5
1 changed files with 3 additions and 0 deletions

View File

@ -1019,6 +1019,9 @@ static DWORD calc_arg_size(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat)
DWORD size;
switch(*pFormat)
{
case RPC_FC_STRUCT:
size = *(const WORD*)(pFormat + 2);
break;
case RPC_FC_CARRAY:
size = *(const WORD*)(pFormat + 2);
ComputeConformance(pStubMsg, NULL, pFormat + 4, 0);