mshtml: Don't crash in load_stream if Gecko is not available.
This commit is contained in:
parent
bf7a479042
commit
95e96fd547
|
@ -826,8 +826,10 @@ HRESULT load_stream(BSCallback *bscallback, IStream *stream)
|
|||
|
||||
add_nsrequest(bscallback);
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue