Jacek Caban : urlmon: Fixed potential null dereference.
Alexandre Julliard
julliard at winehq.org
Tue Sep 30 11:16:59 CDT 2008
Module: wine
Branch: master
Commit: ec34ad38ef0b6ca7b02454e5af66d91cc9b27ff7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ec34ad38ef0b6ca7b02454e5af66d91cc9b27ff7
Author: Jacek Caban <jacek at 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;
}
More information about the wine-cvs
mailing list