Commit 506b369c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

urlmon: Delay processing notifications from Read during MIME verification.

parent e15a923a
...@@ -897,8 +897,12 @@ static HRESULT WINAPI ProtocolSinkHandler_ReportData(IInternetProtocolSink *ifac ...@@ -897,8 +897,12 @@ static HRESULT WINAPI ProtocolSinkHandler_ReportData(IInternetProtocolSink *ifac
do { do {
read = 0; read = 0;
if(is_apartment_thread(This))
This->continue_call++;
hres = IInternetProtocol_Read(This->protocol, buf, hres = IInternetProtocol_Read(This->protocol, buf,
sizeof(buf)-This->buf_size, &read); sizeof(buf)-This->buf_size, &read);
if(is_apartment_thread(This))
This->continue_call--;
if(FAILED(hres) && hres != E_PENDING) if(FAILED(hres) && hres != E_PENDING)
return hres; return hres;
......
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