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

Alexandre Julliard julliard at winehq.org
Fri Jul 29 12:37:02 CDT 2011


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Jul 29 13:25:24 2011 +0200

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

---

 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;




More information about the wine-cvs mailing list