Jacek Caban : urlmon: Correctly handle INTERNET_STATUS_REQUEST_COMPLETE notification with no data available.

Alexandre Julliard julliard at winehq.org
Thu Jan 19 15:38:17 CST 2017


Module: wine
Branch: master
Commit: aa2ed7338793598c91716a79ba8b73ffc18d8200
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aa2ed7338793598c91716a79ba8b73ffc18d8200

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Jan 19 12:34:37 2017 +0100

urlmon: Correctly handle INTERNET_STATUS_REQUEST_COMPLETE notification with no data available.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/urlmon/protocol.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/dlls/urlmon/protocol.c b/dlls/urlmon/protocol.c
index 1437152..abe8668 100644
--- a/dlls/urlmon/protocol.c
+++ b/dlls/urlmon/protocol.c
@@ -395,13 +395,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
                 if(res) {
                     TRACE("available %u bytes\n", protocol->query_available);
                     if(!protocol->query_available) {
-                        if(is_start) {
-                            TRACE("empty file\n");
-                            all_data_read(protocol);
-                        }else {
-                            WARN("unexpected end of file?\n");
-                            report_result(protocol, INET_E_DOWNLOAD_FAILURE);
-                        }
+                        all_data_read(protocol);
                         return S_OK;
                     }
                     protocol->available_bytes = protocol->query_available;




More information about the wine-cvs mailing list