[PATCH] Fixed crash with load a typelib information

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Tue Jul 8 02:52:43 CDT 2008


---
 programs/oleview/typelib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c
index 5dbffb0..e1d39a3 100644
--- a/programs/oleview/typelib.c
+++ b/programs/oleview/typelib.c
@@ -677,7 +677,7 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen
 		if (V_VT(param) == VT_BSTR)
 		{
 		    AddToTLDataStrW(tld, wszInvertedComa);
-		    AddToTLDataStrW(tld, V_BSTR(&var));
+		    AddToTLDataStrW(tld, V_BSTR(param));
 		    AddToTLDataStrW(tld, wszInvertedComa);
 		} else if (VariantChangeType(&var, param, 0, VT_BSTR) == S_OK)
 		    AddToTLDataStrW(tld, V_BSTR(&var));
-- 
1.5.4.1


--------------090005030806020902070707--




More information about the wine-patches mailing list