mshtml: Fixed error handling of IBindCtx_GetObjectParam (coverity).

This commit is contained in:
Jacek Caban 2012-10-19 11:59:57 +02:00 committed by Alexandre Julliard
parent 23c87ba829
commit 3b6615686b
1 changed files with 2 additions and 2 deletions

View File

@ -520,8 +520,8 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
* "_EnumFORMATETC_"
*/
IBindCtx_GetObjectParam(pibc, (LPOLESTR)SZ_HTML_CLIENTSITE_OBJECTPARAM, &unk);
if(unk) {
hres = IBindCtx_GetObjectParam(pibc, (LPOLESTR)SZ_HTML_CLIENTSITE_OBJECTPARAM, &unk);
if(SUCCEEDED(hres) && unk) {
IOleClientSite *client = NULL;
hres = IUnknown_QueryInterface(unk, &IID_IOleClientSite, (void**)&client);