rpcrt4: Implement NdrSimpleStructMemorySize.

This commit is contained in:
Robert Shearman 2006-05-15 13:34:58 +01:00 committed by Alexandre Julliard
parent 2aff761dfd
commit b96d630022
1 changed files with 9 additions and 3 deletions

View File

@ -1491,11 +1491,17 @@ void WINAPI NdrSimpleStructBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned long WINAPI NdrSimpleStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
/* unsigned size = *(LPWORD)(pFormat+2); */
FIXME("(%p,%p): stub\n", pStubMsg, pFormat);
unsigned short size = *(LPWORD)(pFormat+2);
TRACE("(%p,%p)\n", pStubMsg, pFormat);
ALIGN_POINTER(pStubMsg->Buffer, pFormat[1] + 1);
pStubMsg->MemorySize += size;
pStubMsg->Buffer += size;
if (pFormat[0] != RPC_FC_STRUCT)
EmbeddedPointerMemorySize(pStubMsg, pFormat+4);
return 0;
return size;
}
/***********************************************************************