From f93ca73e61e0212f7023376e48458cb8dee9c593 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 17 Jul 2012 14:42:18 +0200 Subject: [PATCH] mshtml: Avoid returning with an unset URL policy in error cases. --- dlls/mshtml/secmgr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/mshtml/secmgr.c b/dlls/mshtml/secmgr.c index ff349ac20cb..f961bcabd82 100644 --- a/dlls/mshtml/secmgr.c +++ b/dlls/mshtml/secmgr.c @@ -20,6 +20,7 @@ #include #include +#include #define COBJMACROS @@ -104,9 +105,7 @@ static HRESULT confirm_safety_load(HTMLDocumentNode *This, struct CONFIRMSAFETY CATID init_catid = CATID_SafeForInitializing; hres = ICatInformation_IsClassOfCategories(This->catmgr, &cs->clsid, 1, &init_catid, 0, NULL); - if(FAILED(hres)) - return hres; - + assert(SUCCEEDED(hres)); *ret = hres == S_OK ? URLPOLICY_ALLOW : URLPOLICY_DISALLOW; }