mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:40:51 +00:00
mshtml: Avoid returning with an unset URL policy in error cases.
This commit is contained in:
parent
d8c90fa40b
commit
f93ca73e61
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue