Commit fb7fc894 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Set an appropriate error when the request is cancelled.

parent c54772c1
......@@ -2565,6 +2565,9 @@ static DWORD wait_for_completion( struct winhttp_request *request, DWORD timeout
{
case WAIT_OBJECT_0:
break;
case WAIT_OBJECT_0 + 1:
request->error = ERROR_CANCELLED;
break;
case WAIT_TIMEOUT:
request->error = ERROR_TIMEOUT;
break;
......
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