Module: wine Branch: master Commit: 6021fa09f3e3a3b3f37c9e3ded83cbcd0b6dedd1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6021fa09f3e3a3b3f37c9e3ded...
Author: Rob Shearman rob@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,