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

This commit is contained in:
Hans Leidekker 2011-07-29 13:25:24 +02:00 committed by Alexandre Julliard
parent c54772c114
commit fb7fc894f0
1 changed files with 3 additions and 0 deletions

View File

@ -2565,6 +2565,9 @@ static DWORD wait_for_completion( struct winhttp_request *request, DWORD timeout
{ {
case WAIT_OBJECT_0: case WAIT_OBJECT_0:
break; break;
case WAIT_OBJECT_0 + 1:
request->error = ERROR_CANCELLED;
break;
case WAIT_TIMEOUT: case WAIT_TIMEOUT:
request->error = ERROR_TIMEOUT; request->error = ERROR_TIMEOUT;
break; break;