Make sure to fill out the MIDL_STUB_MESSAGE structure in

NdrSendReceive like we do in NdrProxySendReceive.
This commit is contained in:
Robert Shearman 2005-11-28 11:31:04 +01:00 committed by Alexandre Julliard
parent d9896dec47
commit 386c3a5819
1 changed files with 5 additions and 0 deletions

View File

@ -282,6 +282,11 @@ unsigned char *WINAPI NdrSendReceive( MIDL_STUB_MESSAGE *stubmsg, unsigned char
/* FIXME: raise exception? */
}
stubmsg->BufferLength = stubmsg->RpcMsg->BufferLength;
stubmsg->BufferStart = stubmsg->RpcMsg->Buffer;
stubmsg->BufferEnd = stubmsg->BufferStart + stubmsg->BufferLength;
stubmsg->Buffer = stubmsg->BufferStart;
/* FIXME: is this the right return value? */
return NULL;
}