Commit ff7f92c0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

rpcrt4: Handle FC_NON_ENCAPSULATED_UNION in calc_arg_size().

parent 5c16408e
......@@ -210,6 +210,12 @@ static DWORD calc_arg_size(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat)
pStubMsg->MaxCount = 0;
size *= pStubMsg->MaxCount;
break;
case FC_NON_ENCAPSULATED_UNION:
{
DWORD offset = *(const WORD *)(pFormat + 6 + pStubMsg->CorrDespIncrement);
size = *(const WORD *)(pFormat + 8 + pStubMsg->CorrDespIncrement + offset);
break;
}
default:
FIXME("Unhandled type %02x\n", *pFormat);
/* fallthrough */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment