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
717a17b2
Commit
717a17b2
authored
Sep 20, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Avoid an ARRAY_SIZE-like macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
009bbfa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
http.c
dlls/wininet/http.c
+2
-4
No files found.
dlls/wininet/http.c
View file @
717a17b2
...
...
@@ -3513,8 +3513,6 @@ static const LPCWSTR header_lookup[] = {
szUnless_Modified_Since
,
/* HTTP_QUERY_UNLESS_MODIFIED_SINCE = 70 */
};
#define LAST_TABLE_HEADER (sizeof(header_lookup)/sizeof(header_lookup[0]))
/***********************************************************************
* HTTP_HttpQueryInfoW (internal)
*/
...
...
@@ -3700,9 +3698,9 @@ static DWORD HTTP_HttpQueryInfoW(http_request_t *request, DWORD dwInfoLevel,
return
res
;
}
default:
assert
(
LAST_TABLE_HEADER
==
(
HTTP_QUERY_UNLESS_MODIFIED_SINCE
+
1
));
assert
(
ARRAY_SIZE
(
header_lookup
)
==
(
HTTP_QUERY_UNLESS_MODIFIED_SINCE
+
1
));
if
(
level
<
LAST_TABLE_HEADER
&&
header_lookup
[
level
])
if
(
level
<
ARRAY_SIZE
(
header_lookup
)
&&
header_lookup
[
level
])
index
=
HTTP_GetCustomHeaderIndex
(
request
,
header_lookup
[
level
],
requested_index
,
request_only
);
}
...
...
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