From 6021fa09f3e3a3b3f37c9e3ded83cbcd0b6dedd1 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 15 May 2008 21:05:21 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 0118d7b846f..d24bc43e22f 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,