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
8ca4a4a3
Commit
8ca4a4a3
authored
May 11, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
May 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added PI_APARTMENTTHREADED support to BindProtocol::ReportProgress.
parent
2dee8bb7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
bindprot.c
dlls/urlmon/bindprot.c
+32
-0
No files found.
dlls/urlmon/bindprot.c
View file @
8ca4a4a3
...
...
@@ -666,6 +666,23 @@ static HRESULT WINAPI BPInternetProtocolSink_ReportProgress(IInternetProtocolSin
return
S_OK
;
}
typedef
struct
{
task_header_t
header
;
DWORD
bscf
;
ULONG
progress
;
ULONG
progress_max
;
}
report_data_task_t
;
static
void
report_data_proc
(
BindProtocol
*
This
,
task_header_t
*
t
)
{
report_data_task_t
*
task
=
(
report_data_task_t
*
)
t
;
if
(
This
->
protocol_sink
)
IInternetProtocolSink_ReportData
(
This
->
protocol_sink
,
task
->
bscf
,
task
->
progress
,
task
->
progress_max
);
heap_free
(
task
);
}
static
HRESULT
WINAPI
BPInternetProtocolSink_ReportData
(
IInternetProtocolSink
*
iface
,
DWORD
grfBSCF
,
ULONG
ulProgress
,
ULONG
ulProgressMax
)
{
...
...
@@ -676,6 +693,21 @@ static HRESULT WINAPI BPInternetProtocolSink_ReportData(IInternetProtocolSink *i
if
(
!
This
->
protocol_sink
)
return
S_OK
;
if
(
!
do_direct_notif
(
This
))
{
report_data_task_t
*
task
;
task
=
heap_alloc
(
sizeof
(
report_data_task_t
));
if
(
!
task
)
return
E_OUTOFMEMORY
;
task
->
bscf
=
grfBSCF
;
task
->
progress
=
ulProgress
;
task
->
progress_max
=
ulProgressMax
;
push_task
(
This
,
&
task
->
header
,
report_data_proc
);
return
S_OK
;
}
return
IInternetProtocolSink_ReportData
(
This
->
protocol_sink
,
grfBSCF
,
ulProgress
,
ulProgressMax
);
}
...
...
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