Hans Leidekker : winhttp: Use symbolic constants for HTTP status codes.
Alexandre Julliard
julliard at winehq.org
Tue Mar 5 12:59:18 CST 2013
Module: wine
Branch: master
Commit: 58e7d39c7fae38766013453eb690fa5c6456bfe7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=58e7d39c7fae38766013453eb690fa5c6456bfe7
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Mar 5 12:14:25 2013 +0100
winhttp: Use symbolic constants for HTTP status codes.
---
dlls/winhttp/request.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 301478d..9915a43 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1422,12 +1422,12 @@ static BOOL handle_authorization( request_t *request, DWORD status )
switch (status)
{
- case 401:
+ case HTTP_STATUS_DENIED:
target = WINHTTP_AUTH_TARGET_SERVER;
level = WINHTTP_QUERY_WWW_AUTHENTICATE;
break;
- case 407:
+ case HTTP_STATUS_PROXY_AUTH_REQ:
target = WINHTTP_AUTH_TARGET_PROXY;
level = WINHTTP_QUERY_PROXY_AUTHENTICATE;
break;
@@ -1886,7 +1886,7 @@ static BOOL receive_response( request_t *request, BOOL async )
send_request( request, NULL, 0, NULL, 0, 0, 0, FALSE ); /* recurse synchronously */
continue;
}
- else if (status == 401 || status == 407)
+ else if (status == HTTP_STATUS_DENIED || status == HTTP_STATUS_PROXY_AUTH_REQ)
{
if (request->hdr.disable_flags & WINHTTP_DISABLE_AUTHENTICATION) break;
More information about the wine-cvs
mailing list