mshtml: Handle nsIDOMWindow_GetFrames returning NULL.

This commit is contained in:
Indrek Altpere 2015-08-09 09:24:04 +03:00 committed by Alexandre Julliard
parent a15751ab73
commit 2cfe3cac0c
1 changed files with 5 additions and 0 deletions

View File

@ -380,6 +380,11 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
return E_FAIL;
}
if(!nsframes) {
WARN("nsIDOMWindow_GetFrames returned NULL nsframes: %p\n", This->nswindow);
return DISP_E_MEMBERNOTFOUND;
}
nsAString_InitDepend(&name_str, name);
nsres = nsIDOMWindowCollection_NamedItem(nsframes, &name_str, &nswindow);
nsAString_Finish(&name_str);