Zebediah Figura : http.sys: Translate WSAEACCES to STATUS_ACCESS_DENIED.

Alexandre Julliard julliard at winehq.org
Tue Mar 3 16:24:51 CST 2020


Module: wine
Branch: master
Commit: 4cae0e6bc2c3a1dd1a8c2fd446d0ae1034ffa091
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4cae0e6bc2c3a1dd1a8c2fd446d0ae1034ffa091

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Mar  2 21:35:00 2020 -0600

http.sys: Translate WSAEACCES to STATUS_ACCESS_DENIED.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/http.sys/http.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/http.sys/http.c b/dlls/http.sys/http.c
index 5fbae66b75..25c8a1955a 100644
--- a/dlls/http.sys/http.c
+++ b/dlls/http.sys/http.c
@@ -1112,6 +1112,11 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
             WARN("Address %s is already in use.\n", debugstr_a(params->url));
             return STATUS_SHARING_VIOLATION;
         }
+        else if (WSAGetLastError() == WSAEACCES)
+        {
+            WARN("Not enough permissions to bind to address %s.\n", debugstr_a(params->url));
+            return STATUS_ACCESS_DENIED;
+        }
         ERR("Failed to bind socket, error %u.\n", WSAGetLastError());
         return STATUS_UNSUCCESSFUL;
     }




More information about the wine-cvs mailing list