Jacek Caban : urlmon: Fixed potential null dereference.
Module: wine Branch: master Commit: ec34ad38ef0b6ca7b02454e5af66d91cc9b27ff7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ec34ad38ef0b6ca7b02454e5af... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Sep 28 17:44:56 2008 +0200 urlmon: Fixed potential null dereference. --- dlls/urlmon/bindctx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/urlmon/bindctx.c b/dlls/urlmon/bindctx.c index 328254c..044b817 100644 --- a/dlls/urlmon/bindctx.c +++ b/dlls/urlmon/bindctx.c @@ -511,7 +511,8 @@ HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pb hres = IBindCtx_RegisterObjectParam(pbc, BSCBHolder, (IUnknown*)bsc); IBindStatusCallback_Release(bsc); if(FAILED(hres)) { - IBindStatusCallback_Release(prev); + if(prev) + IBindStatusCallback_Release(prev); return hres; }
participants (1)
-
Alexandre Julliard