Commit cf8da82a authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Clear the RPC_MESSAGE structure before using it.

The RPC runtime could use some of the parameters, expecting them to be initialised.
parent 628a515b
......@@ -376,9 +376,9 @@ static HRESULT WINAPI CFProxy_CreateInstance(
*
* Data: Only the 'IID'.
*/
memset(&msg, 0, sizeof(msg));
msg.iMethod = 3;
msg.cbBuffer = sizeof(*riid);
msg.Buffer = NULL;
hres = IRpcChannelBuffer_GetBuffer(This->chanbuf,&msg,&IID_IClassFactory);
if (hres) {
FIXME("IRpcChannelBuffer_GetBuffer failed with %x?\n",hres);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment