Rob Shearman : ole32: Clear the RPC_MESSAGE structure before using it.

Alexandre Julliard julliard at winehq.org
Mon Jan 7 08:39:04 CST 2008


Module: wine
Branch: master
Commit: cf8da82ad37eb07b48c8ae6eae0fce5f0571a52e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf8da82ad37eb07b48c8ae6eae0fce5f0571a52e

Author: Rob Shearman <rob at codeweavers.com>
Date:   Fri Jan  4 17:44:01 2008 +0000

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c
index 9af6c59..bc87997 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);




More information about the wine-cvs mailing list