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
0b366dca
Commit
0b366dca
authored
Sep 15, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Verify the async parameter type in IWinHttpRequest::Open.
parent
912035f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
request.c
dlls/winhttp/request.c
+1
-1
winhttp.c
dlls/winhttp/tests/winhttp.c
+2
-0
No files found.
dlls/winhttp/request.c
View file @
0b366dca
...
...
@@ -2992,7 +2992,7 @@ static HRESULT WINAPI winhttp_request_Open(
path
[
uc
.
dwUrlPathLength
+
uc
.
dwExtraInfoLength
]
=
0
;
if
(
!
(
verb
=
strdupW
(
method
)))
goto
error
;
if
(
V_BOOL
(
&
async
))
flags
|=
WINHTTP_FLAG_ASYNC
;
if
(
V_
VT
(
&
async
)
==
VT_BOOL
&&
V_
BOOL
(
&
async
))
flags
|=
WINHTTP_FLAG_ASYNC
;
if
(
!
(
hsession
=
WinHttpOpen
(
user_agentW
,
WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
,
NULL
,
NULL
,
flags
)))
{
err
=
get_last_error
();
...
...
dlls/winhttp/tests/winhttp.c
View file @
0b366dca
...
...
@@ -2561,6 +2561,8 @@ static void test_IWinHttpRequest(void)
method
=
SysAllocString
(
method1W
);
SysFreeString
(
url
);
url
=
SysAllocString
(
url1W
);
V_VT
(
&
async
)
=
VT_ERROR
;
V_ERROR
(
&
async
)
=
DISP_E_PARAMNOTFOUND
;
hr
=
IWinHttpRequest_Open
(
req
,
method
,
url
,
async
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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