Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 219 of file ndr_es.c.
Referenced by mes_proc_header_unmarshal(), and NdrMesProcEncodeDecode().
{ if (pEsMsg->HandleStyle == MES_INCREMENTAL_HANDLE) { unsigned int tmpsize = size; TRACE("%d from incremental handle\n", size); pEsMsg->Read(pEsMsg->UserState, (char **)&pEsMsg->StubMsg.Buffer, &tmpsize); if (tmpsize < size) { ERR("not enough bytes read - requested %d, got %d\n", size, tmpsize); RpcRaiseException(ERROR_OUTOFMEMORY); } } else { TRACE("%d from fixed or dynamic buffer handle\n", size); /* FIXME: validate BufferSize? */ pEsMsg->StubMsg.Buffer = pEsMsg->Buffer; pEsMsg->Buffer += size; pEsMsg->BufferSize -= size; } pEsMsg->StubMsg.BufferLength = size; pEsMsg->StubMsg.RpcMsg->Buffer = pEsMsg->StubMsg.BufferStart = pEsMsg->StubMsg.Buffer; pEsMsg->StubMsg.BufferEnd = pEsMsg->StubMsg.Buffer + size; }