wininet: Fix a typo in is_basic_auth_value.

This fixes basic authentication when the server uses a realm string.
This commit is contained in:
Rob Shearman 2008-05-15 21:05:21 +01:00 committed by Alexandre Julliard
parent a576c40372
commit 6021fa09f3

View file

@ -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,