Commit 892d3cd4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Properly handle closed connection in HTTP_HttpEndRequestW.

parent 3dc2c3ca
......@@ -4977,6 +4977,12 @@ static DWORD HTTP_HttpEndRequestW(http_request_t *request, DWORD dwFlags, DWORD_
DWORD dwBufferSize;
DWORD res = ERROR_SUCCESS;
if(!request->netconn) {
WARN("Not connected\n");
send_request_complete(request, 0, ERROR_INTERNET_OPERATION_CANCELLED);
return ERROR_INTERNET_OPERATION_CANCELLED;
}
INTERNET_SendCallback(&request->hdr, request->hdr.dwContext,
INTERNET_STATUS_RECEIVING_RESPONSE, NULL, 0);
......
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