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
4f405b22
Commit
4f405b22
authored
Aug 13, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix timing issue with FLAG_REQUEST_COMPLETE and…
urlmon: Fix timing issue with FLAG_REQUEST_COMPLETE and InternetQueryDataAvailable in HttpProtocol_Continue.
parent
70edf2d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
http.c
dlls/urlmon/http.c
+7
-5
No files found.
dlls/urlmon/http.c
View file @
4f405b22
...
...
@@ -661,20 +661,22 @@ static HRESULT WINAPI HttpProtocol_Continue(IInternetProtocol *iface, PROTOCOLDA
if
(
pProtocolData
->
pData
>=
(
LPVOID
)
BINDSTATUS_DOWNLOADINGDATA
)
{
/* InternetQueryDataAvailable may immediately fork and perform its asynchronous
* read, so clear the flag _before_ calling so it does not incorrectly get cleared
* after the status callback is called */
This
->
flags
&=
~
FLAG_REQUEST_COMPLETE
;
if
(
!
InternetQueryDataAvailable
(
This
->
request
,
&
This
->
available_bytes
,
0
,
0
))
{
if
(
GetLastError
()
==
ERROR_IO_PENDING
)
{
This
->
flags
&=
~
FLAG_REQUEST_COMPLETE
;
}
else
if
(
GetLastError
()
!=
ERROR_IO_PENDING
)
{
This
->
flags
|=
FLAG_REQUEST_COMPLETE
;
WARN
(
"InternetQueryDataAvailable failed: %d
\n
"
,
GetLastError
());
HTTPPROTOCOL_ReportResult
(
This
,
INET_E_DATA_NOT_AVAILABLE
);
}
}
else
{
This
->
flags
|=
FLAG_REQUEST_COMPLETE
;
HTTPPROTOCOL_ReportData
(
This
);
}
}
...
...
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