Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5ee8a653
Commit
5ee8a653
authored
Oct 19, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
faff3b02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+1
-2
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
5ee8a653
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment