[2/4] winhttp: Set an appropriate error when the request is cancelled.
Hans Leidekker
hans at codeweavers.com
Fri Jul 29 06:25:24 CDT 2011
---
dlls/winhttp/request.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index a57f801..3efa8a3 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -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;
--
1.7.4.1
More information about the wine-patches
mailing list