Module: wine Branch: master Commit: 732682b08cf3b64267045cf0ab051fb84af43aea URL: http://source.winehq.org/git/wine.git/?a=commit;h=732682b08cf3b64267045cf0ab...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Apr 10 10:38:05 2008 +0200
mshtml: Correctly handle NULL req in get_nscontainer_from_load_group.
---
dlls/mshtml/nsio.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 0331882..53ad33e 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)) {