mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:44:47 +00:00
mshtml: Return E_ABORT if wine-gecko's OnDataAvailable aborts the binding.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
08957afe17
commit
c2d55cd24e
|
@ -1184,8 +1184,10 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
|
|||
(nsIRequest*)&This->nschannel->nsIHttpChannel_iface, This->nscontext,
|
||||
&This->nsstream->nsIInputStream_iface, This->bsc.read-This->nsstream->buf_size,
|
||||
This->nsstream->buf_size);
|
||||
if(NS_FAILED(nsres))
|
||||
ERR("OnDataAvailable failed: %08lx\n", nsres);
|
||||
if(NS_FAILED(nsres)) {
|
||||
WARN("OnDataAvailable failed: %08lx\n", nsres);
|
||||
return map_nsresult(nsres);
|
||||
}
|
||||
|
||||
if(This->nsstream->buf_size == sizeof(This->nsstream->buf)) {
|
||||
ERR("buffer is full\n");
|
||||
|
|
|
@ -911,6 +911,8 @@ HRESULT map_nsresult(nsresult nsres)
|
|||
return E_UNEXPECTED;
|
||||
case NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR:
|
||||
return 0x80700007; /* according to tests */
|
||||
case NS_BINDING_ABORTED:
|
||||
return E_ABORT;
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue