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

This commit is contained in:
Jacek Caban 2007-06-10 11:36:54 +02:00 committed by Alexandre Julliard
parent bf7a479042
commit 95e96fd547
1 changed files with 4 additions and 2 deletions

View File

@ -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);