ChangeSet ID: 21490 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/28 05:06:21
Modified files: dlls/rpcrt4 : ndr_midl.c
Log message: Robert Shearman rob@codeweavers.com Make sure to fill out the MIDL_STUB_MESSAGE structure in NdrSendReceive like we do in NdrProxySendReceive.
Patch: http://cvs.winehq.org/patch.py?id=21490
Old revision New revision Changes Path 1.23 1.24 +5 -0 wine/dlls/rpcrt4/ndr_midl.c
Index: wine/dlls/rpcrt4/ndr_midl.c diff -u -p wine/dlls/rpcrt4/ndr_midl.c:1.23 wine/dlls/rpcrt4/ndr_midl.c:1.24 --- wine/dlls/rpcrt4/ndr_midl.c:1.23 28 Nov 2005 11: 6:21 -0000 +++ wine/dlls/rpcrt4/ndr_midl.c 28 Nov 2005 11: 6:21 -0000 @@ -282,6 +282,11 @@ unsigned char *WINAPI NdrSendReceive( MI /* 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; }