Indrek Altpere : mshtml: Handle nsIDOMWindow_GetFrames returning NULL.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 17 09:01:11 CDT 2015
Module: wine
Branch: master
Commit: 2cfe3cac0ce15e97b1b3fe374ad6f3d8da4075e7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2cfe3cac0ce15e97b1b3fe374ad6f3d8da4075e7
Author: Indrek Altpere <efbiaiinzinz at hotmail.com>
Date: Sun Aug 9 09:24:04 2015 +0300
mshtml: Handle nsIDOMWindow_GetFrames returning NULL.
---
dlls/mshtml/htmlwindow.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index b5b906a..280a5d7 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -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);
More information about the wine-cvs
mailing list