From cf8da82ad37eb07b48c8ae6eae0fce5f0571a52e Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 4 Jan 2008 17:44:01 +0000 Subject: [PATCH] ole32: Clear the RPC_MESSAGE structure before using it. The RPC runtime could use some of the parameters, expecting them to be initialised. --- dlls/ole32/oleproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index 9af6c59423d..bc87997c87a 100644 --- a/dlls/ole32/oleproxy.c +++ b/dlls/ole32/oleproxy.c @@ -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);