urlmon: Do not stop binding when OnDataAvailable() returns E_PENDING

Andrew Talbot andrew.talbot at talbotville.com
Mon Jun 25 17:02:23 CDT 2012


Changelog:
    urlmon: Do not stop binding when OnDataAvailable() returns E_PENDING.

diff --git a/dlls/urlmon/binding.c b/dlls/urlmon/binding.c
index 58aed20..42eca4b 100644
--- a/dlls/urlmon/binding.c
+++ b/dlls/urlmon/binding.c
@@ -1097,7 +1097,7 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
 
         hres = IBindStatusCallback_OnDataAvailable(This->callback, bscf, progress,
                 &formatetc, &stgmed);
-        if(hres != S_OK) {
+        if(FAILED(hres) && hres != E_PENDING) {
             if(This->download_state != END_DOWNLOAD) {
                 This->download_state = END_DOWNLOAD;
                 IBindStatusCallback_OnProgress(This->callback, progress, progress_max,




More information about the wine-patches mailing list