PATCH: tmarshal / bad pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Small heapcorruption bug in the typelib marshaller. Spotted by inserting lots
of HeapValidates() :/

Ciao, Marcus

Changelog:
	Use correct pointer for SysFreeString.

Index: dlls/oleaut32/tmarshal.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tmarshal.c,v
retrieving revision 1.20
diff -u -r1.20 tmarshal.c
--- dlls/oleaut32/tmarshal.c	22 Sep 2003 19:21:32 -0000	1.20
+++ dlls/oleaut32/tmarshal.c	30 Nov 2003 09:34:08 -0000
@@ -466,8 +466,9 @@
 		    return hres;
 	    }
 	}
+
 	if (dealloc && arg)
-	    SysFreeString((BSTR)arg);
+	    SysFreeString((BSTR)*arg);
 	return S_OK;
     }
     case VT_PTR: {


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux