PATCH: tmarshal / bad pointer
Marcus Meissner
marcus at jet.franken.de
Sun Nov 30 03:40:31 CST 2003
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: {
More information about the wine-patches
mailing list