mshtml: Add NULL check to get_frame_by_name.

This commit is contained in:
Indrek Altpere 2015-05-29 16:51:50 +03:00 committed by Alexandre Julliard
parent 55c03ad4d2
commit 2676488fcd

View file

@ -406,6 +406,11 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
nsIDOMWindow_Release(nswindow);
if(!window_iter) {
WARN("nsIDOMWindow without HTMLOuterWindow: %p\n", nswindow);
continue;
}
hres = IHTMLElement_get_id(&window_iter->frame_element->element.IHTMLElement_iface, &id);
if(FAILED(hres)) {
FIXME("IHTMLElement_get_id failed: 0x%08x\n", hres);