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
5f14eb56
Commit
5f14eb56
authored
Feb 14, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Allow available_bytes to be set before protocol_continue call.
parent
79b236c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
protocol.c
dlls/urlmon/protocol.c
+9
-3
No files found.
dlls/urlmon/protocol.c
View file @
5f14eb56
...
...
@@ -338,7 +338,8 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
protocol
->
flags
|=
FLAG_FIRST_CONTINUE_COMPLETE
;
}
if
(
data
->
pData
>=
UlongToPtr
(
BINDSTATUS_DOWNLOADINGDATA
)
&&
!
protocol
->
available_bytes
)
{
if
(
data
->
pData
>=
UlongToPtr
(
BINDSTATUS_DOWNLOADINGDATA
))
{
if
(
!
protocol
->
available_bytes
)
{
BOOL
res
;
/* InternetQueryDataAvailable may immediately fork and perform its asynchronous
...
...
@@ -347,6 +348,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
protocol
->
flags
&=
~
FLAG_REQUEST_COMPLETE
;
res
=
InternetQueryDataAvailable
(
protocol
->
request
,
&
protocol
->
available_bytes
,
0
,
0
);
if
(
res
)
{
TRACE
(
"available %u bytes
\n
"
,
protocol
->
available_bytes
);
if
(
!
protocol
->
available_bytes
)
{
if
(
is_start
)
{
TRACE
(
"empty file
\n
"
);
...
...
@@ -357,13 +359,17 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
}
return
S_OK
;
}
protocol
->
flags
|=
FLAG_REQUEST_COMPLETE
;
report_data
(
protocol
);
}
else
if
(
GetLastError
()
!=
ERROR_IO_PENDING
)
{
protocol
->
flags
|=
FLAG_REQUEST_COMPLETE
;
WARN
(
"InternetQueryDataAvailable failed: %d
\n
"
,
GetLastError
());
report_result
(
protocol
,
INET_E_DATA_NOT_AVAILABLE
);
return
S_OK
;
}
protocol
->
flags
|=
FLAG_REQUEST_COMPLETE
;
}
report_data
(
protocol
);
}
return
S_OK
;
...
...
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