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
4499b451
Commit
4499b451
authored
Feb 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Read remaining protocol data if report_data was called after binding finished.
parent
0d01f2f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
binding.c
dlls/urlmon/binding.c
+6
-1
url.c
dlls/urlmon/tests/url.c
+5
-0
No files found.
dlls/urlmon/binding.c
View file @
4499b451
...
...
@@ -1068,7 +1068,12 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
TRACE
(
"(%p)->(%d %u %u)
\n
"
,
This
,
bscf
,
progress
,
progress_max
);
if
(
This
->
download_state
==
END_DOWNLOAD
||
(
This
->
state
&
(
BINDING_STOPPED
|
BINDING_ABORTED
)))
if
(
This
->
download_state
==
END_DOWNLOAD
||
(
This
->
state
&
BINDING_ABORTED
))
{
read_protocol_data
(
This
->
stgmed_buf
);
return
;
}
if
(
This
->
state
&
BINDING_STOPPED
)
return
;
if
(
This
->
stgmed_buf
->
file
!=
INVALID_HANDLE_VALUE
)
...
...
dlls/urlmon/tests/url.c
View file @
4499b451
...
...
@@ -858,6 +858,11 @@ static HRESULT WINAPI Protocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
hres
=
IInternetProtocolSink_ReportProgress
(
pOIProtSink
,
BINDSTATUS_BEGINDOWNLOADDATA
,
NULL
);
ok
(
hres
==
S_OK
,
"ReportProgress(BINDSTATUS_BEGINDOWNLOADDATA) failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
Read
);
}
else
if
(
!
bind_to_object
&&
test_protocol
==
ABOUT_TEST
)
{
SET_EXPECT
(
Read
);
hres
=
IInternetProtocolSink_ReportData
(
pOIProtSink
,
bscf
,
13
,
13
);
ok
(
hres
==
S_OK
,
"ReportData failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
Read
);
}
SET_EXPECT
(
Terminate
);
...
...
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