http.sys: Translate WSAEACCES to STATUS_ACCESS_DENIED.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-03-02 21:35:00 -06:00 committed by Alexandre Julliard
parent d942f12871
commit 4cae0e6bc2
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}