Sync with trunk r63174.
[reactos.git] / dll / win32 / urlmon / protocol.c
index be88614..84b8448 100644 (file)
 
 #include "urlmon_main.h"
 
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
-
 static inline HRESULT report_progress(Protocol *protocol, ULONG status_code, LPCWSTR status_text)
 {
     return IInternetProtocolSink_ReportProgress(protocol->protocol_sink, status_code, status_text);
@@ -78,7 +74,7 @@ static HRESULT start_downloading(Protocol *protocol)
     if(FAILED(hres)) {
         protocol_close_connection(protocol);
         report_result(protocol, hres);
-        return S_OK;
+        return hres;
     }
 
     if(protocol->bindf & BINDF_NEEDFILE) {
@@ -516,6 +512,7 @@ HRESULT protocol_abort(Protocol *protocol, HRESULT reason)
     if(!protocol->protocol_sink)
         return S_OK;
 
+    /* NOTE: IE10 returns S_OK here */
     if(protocol->flags & FLAG_RESULT_REPORTED)
         return INET_E_RESULT_DISPATCHED;