oleaut32: Initialize nrofnames to keep from freeing unused memory in the error case

James Hawkins truiken at gmail.com
Tue Jan 16 04:15:20 CST 2007


Hi,

Changelog:
* Initialize nrofnames to keep from freeing unused memory in the error case.

 dlls/oleaut32/tmarshal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c
index 6a5a6d3..1740476 100644
--- a/dlls/oleaut32/tmarshal.c
+++ b/dlls/oleaut32/tmarshal.c
@@ -1751,7 +1751,7 @@ TMStubImpl_Invoke(
     HRESULT	hres;
     DWORD	*args = NULL, res, *xargs, nrofargs;
     marshal_state	buf;
-    UINT	nrofnames;
+    UINT	nrofnames = 0;
     BSTR	names[10];
     BSTR	iname = NULL;
     ITypeInfo 	*tinfo = NULL;
-- 
1.4.4.2


More information about the wine-patches mailing list