Don't leave a pointer uninitialised
Bill Medland
billmedland at mercuryspeed.com
Sat Dec 18 18:18:18 CST 2004
Bill Medland (billmedland at mercuryspeed.com)
Fully initialise the structure to prevent ill-defined behaviour
Index: wine/dlls/oleaut32/tmarshal.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tmarshal.c,v
retrieving revision 1.37
diff -u -r1.37 tmarshal.c
--- wine/dlls/oleaut32/tmarshal.c 16 Dec 2004 14:38:34 -0000 1.37
+++ wine/dlls/oleaut32/tmarshal.c 19 Dec 2004 01:06:34 -0000
@@ -1475,6 +1475,7 @@
proxy->ref = 2;
proxy->tinfo = tinfo;
memcpy(&proxy->iid,riid,sizeof(*riid));
+ proxy->chanbuf = 0;
*ppv = (LPVOID)proxy;
*ppProxy = (IRpcProxyBuffer *)&(proxy->lpvtbl2);
return S_OK;
More information about the wine-patches
mailing list