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
75b41873
Commit
75b41873
authored
Nov 22, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use an unsigned integer for number values in query_headers().
parent
860a6d76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
request.c
dlls/winhttp/request.c
+5
-5
No files found.
dlls/winhttp/request.c
View file @
75b41873
...
...
@@ -734,15 +734,15 @@ static DWORD query_headers( struct request *request, DWORD level, const WCHAR *n
if
(
!
header
||
(
request_only
&&
!
header
->
is_request
))
return
ERROR_WINHTTP_HEADER_NOT_FOUND
;
if
(
level
&
WINHTTP_QUERY_FLAG_NUMBER
)
{
if
(
!
buffer
||
sizeof
(
int
)
>
*
buflen
)
ret
=
ERROR_INSUFFICIENT_BUFFER
;
if
(
!
buffer
||
sizeof
(
DWORD
)
>
*
buflen
)
ret
=
ERROR_INSUFFICIENT_BUFFER
;
else
{
int
*
number
=
buffer
;
*
number
=
wcstol
(
header
->
value
,
NULL
,
10
);
TRACE
(
"returning number: %
d
\n
"
,
*
number
);
DWORD
*
number
=
buffer
;
*
number
=
wcsto
u
l
(
header
->
value
,
NULL
,
10
);
TRACE
(
"returning number: %
lu
\n
"
,
*
number
);
ret
=
ERROR_SUCCESS
;
}
*
buflen
=
sizeof
(
int
);
*
buflen
=
sizeof
(
DWORD
);
}
else
if
(
level
&
WINHTTP_QUERY_FLAG_SYSTEMTIME
)
{
...
...
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