Rob Shearman : wininet: Fix a typo in is_basic_auth_value.
Alexandre Julliard
julliard at winehq.org
Mon May 19 09:39:35 CDT 2008
Module: wine
Branch: master
Commit: 6021fa09f3e3a3b3f37c9e3ded83cbcd0b6dedd1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6021fa09f3e3a3b3f37c9e3ded83cbcd0b6dedd1
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu May 15 21:05:21 2008 +0100
wininet: Fix a typo in is_basic_auth_value.
This fixes basic authentication when the server uses a realm string.
---
dlls/wininet/http.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 0118d7b..d24bc43 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -394,7 +394,7 @@ static inline BOOL is_basic_auth_value( LPCWSTR pszAuthValue )
{
static const WCHAR szBasic[] = {'B','a','s','i','c'}; /* Note: not nul-terminated */
return !strncmpiW(pszAuthValue, szBasic, ARRAYSIZE(szBasic)) &&
- ((pszAuthValue[ARRAYSIZE(szBasic)] != ' ') || !pszAuthValue[ARRAYSIZE(szBasic)]);
+ ((pszAuthValue[ARRAYSIZE(szBasic)] == ' ') || !pszAuthValue[ARRAYSIZE(szBasic)]);
}
static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue,
More information about the wine-cvs
mailing list