rpcrt4: Avoid a variable holding an ARRAY_SIZE result.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
faff3b02fb
commit
5ee8a6530b
|
@ -2403,12 +2403,11 @@ auth_schemes[] =
|
|||
{ digestW, ARRAYSIZE(digestW) - 1, RPC_C_HTTP_AUTHN_SCHEME_DIGEST },
|
||||
{ negotiateW, ARRAYSIZE(negotiateW) - 1, RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE }
|
||||
};
|
||||
static const unsigned int num_auth_schemes = sizeof(auth_schemes)/sizeof(auth_schemes[0]);
|
||||
|
||||
static DWORD auth_scheme_from_header( const WCHAR *header )
|
||||
{
|
||||
unsigned int i;
|
||||
for (i = 0; i < num_auth_schemes; i++)
|
||||
for (i = 0; i < ARRAY_SIZE(auth_schemes); i++)
|
||||
{
|
||||
if (!strncmpiW( header, auth_schemes[i].str, auth_schemes[i].len ) &&
|
||||
(header[auth_schemes[i].len] == ' ' || !header[auth_schemes[i].len])) return auth_schemes[i].scheme;
|
||||
|
|
Loading…
Reference in New Issue