Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0929593b
Commit
0929593b
authored
Mar 27, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Mar 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: InternetReadFileExA should check INTERNET_FLAG_ASYNC.
parent
aaecdf79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
http.c
dlls/wininet/http.c
+1
-3
http.c
dlls/wininet/tests/http.c
+2
-0
No files found.
dlls/wininet/http.c
View file @
0929593b
...
...
@@ -1733,9 +1733,7 @@ static DWORD HTTPREQ_ReadFileExA(WININETHANDLEHEADER *hdr, INTERNET_BUFFERSA *bu
INTERNET_SendCallback
(
&
req
->
hdr
,
req
->
hdr
.
dwContext
,
INTERNET_STATUS_RECEIVING_RESPONSE
,
NULL
,
0
);
/* FIXME: IRF_ASYNC may not be the right thing to test here;
* hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC is probably better */
if
(
flags
&
IRF_ASYNC
)
{
if
(
hdr
->
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
DWORD
available
=
0
;
NETCON_query_data_available
(
&
req
->
netConnection
,
&
available
);
...
...
dlls/wininet/tests/http.c
View file @
0929593b
...
...
@@ -659,6 +659,8 @@ static void InternetReadFileExA_test(int flags)
if
(
GetLastError
()
==
ERROR_IO_PENDING
)
{
trace
(
"InternetReadFileEx -> PENDING
\n
"
);
ok
(
flags
&
INTERNET_FLAG_ASYNC
,
"Should not get ERROR_IO_PENDING without INTERNET_FLAG_ASYNC
\n
"
);
CHECK_NOTIFIED
(
INTERNET_STATUS_RECEIVING_RESPONSE
);
WaitForSingleObject
(
hCompleteEvent
,
INFINITE
);
CHECK_NOTIFIED
(
INTERNET_STATUS_REQUEST_COMPLETE
);
...
...
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