mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
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);
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user