Commit 95e96fd5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't crash in load_stream if Gecko is not available.

parent bf7a4790
......@@ -826,8 +826,10 @@ HRESULT load_stream(BSCallback *bscallback, IStream *stream)
add_nsrequest(bscallback);
bscallback->nschannel->content = mshtml_alloc(sizeof(text_html));
memcpy(bscallback->nschannel->content, text_html, sizeof(text_html));
if(bscallback->nschannel) {
bscallback->nschannel->content = mshtml_alloc(sizeof(text_html));
memcpy(bscallback->nschannel->content, text_html, sizeof(text_html));
}
hres = read_stream_data(bscallback, stream);
IBindStatusCallback_OnStopBinding(STATUSCLB(bscallback), hres, ERROR_SUCCESS);
......
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