From 732682b08cf3b64267045cf0ab051fb84af43aea Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 10 Apr 2008 10:38:05 +0200 Subject: [PATCH] mshtml: Correctly handle NULL req in get_nscontainer_from_load_group. --- dlls/mshtml/nsio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 0331882c1b9..53ad33e334e 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -656,6 +656,9 @@ static NSContainer *get_nscontainer_from_load_group(nsChannel *This) return NULL; } + if(!req) + return NULL; + nsres = nsIRequest_QueryInterface(req, &IID_nsIChannel, (void**)&channel); nsIRequest_Release(req); if(NS_FAILED(nsres)) { -- 2.11.4.GIT