ole32: Clear the RPC_MESSAGE structure before using it.

The RPC runtime could use some of the parameters, expecting them to be 
initialised.
This commit is contained in:
Rob Shearman 2008-01-04 17:44:01 +00:00 committed by Alexandre Julliard
parent 628a515b83
commit cf8da82ad3
1 changed files with 1 additions and 1 deletions

View File

@ -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);