Commit 2cfe3cac authored by Indrek Altpere's avatar Indrek Altpere Committed by Alexandre Julliard

mshtml: Handle nsIDOMWindow_GetFrames returning NULL.

parent a15751ab
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment