rpcrt4: Don't use BufferEnd in RpcStream_Write.
commit6382c8af3f44629ad9f3ccab046a3728800fb203
authorRob Shearman <rob@codeweavers.com>
Wed, 19 Dec 2007 14:53:40 +0000 (19 14:53 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 19 Dec 2007 18:35:42 +0000 (19 19:35 +0100)
tree1ca18ca82e1f957dc47dedc9c21d469655425a0e
parentc49a73b853a34fc83b1455f1effdc574cf9ae4ed
rpcrt4: Don't use BufferEnd in RpcStream_Write.

It is usually used during marshalling, where pStubMsg->BufferStart and
pStubMsg->BufferEnd won't be valid. Replace it with a check using
RpcMsg->Buffer and pStubMsg->BufferLength.
dlls/rpcrt4/ndr_ole.c