wine/dlls/oleaut32 typelib.c
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 2 14:54:34 CST 2005
ChangeSet ID: 21061
CVSROOT: /opt/cvs-commit
Module name: wine
Changes by: julliard at winehq.org 2005/11/02 14:54:34
Modified files:
dlls/oleaut32 : typelib.c
Log message:
Huw Davies <huw at codeweavers.com>
Don't call Release on a null ptr.
Patch: http://cvs.winehq.org/patch.py?id=21061
Old revision New revision Changes Path
1.173 1.174 +4 -1 wine/dlls/oleaut32/typelib.c
Index: wine/dlls/oleaut32/typelib.c
diff -u -p wine/dlls/oleaut32/typelib.c:1.173 wine/dlls/oleaut32/typelib.c:1.174
--- wine/dlls/oleaut32/typelib.c:1.173 2 Nov 2005 20:54:34 -0000
+++ wine/dlls/oleaut32/typelib.c 2 Nov 2005 20:54:34 -0000
@@ -5064,7 +5064,10 @@ static HRESULT WINAPI ITypeInfo_fnInvoke
* variants here too */
if ((V_VT(&varresult) == (VT_UNKNOWN | VT_BYREF)) ||
(V_VT(&varresult) == (VT_DISPATCH | VT_BYREF)))
- IUnknown_Release(*V_UNKNOWNREF(&varresult));
+ {
+ if(*V_UNKNOWNREF(&varresult))
+ IUnknown_Release(*V_UNKNOWNREF(&varresult));
+ }
break;
}
}
More information about the wine-cvs
mailing list