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
1de0055c
Commit
1de0055c
authored
Jul 11, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Allow timers to be cleaned during processing.
parent
8e8d6393
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
task.c
dlls/mshtml/task.c
+12
-4
No files found.
dlls/mshtml/task.c
View file @
1de0055c
...
...
@@ -128,6 +128,8 @@ static BOOL queue_timer(thread_data_t *thread_data, task_timer_t *timer)
{
task_timer_t
*
iter
;
list_remove
(
&
timer
->
entry
);
if
(
list_empty
(
&
thread_data
->
timer_list
)
||
LIST_ENTRY
(
list_head
(
&
thread_data
->
timer_list
),
task_timer_t
,
entry
)
->
time
>
timer
->
time
)
{
...
...
@@ -159,6 +161,7 @@ DWORD set_task_timer(HTMLDocument *doc, DWORD msec, BOOL interval, IDispatch *di
timer
->
doc
=
doc
;
timer
->
time
=
tc
+
msec
;
timer
->
interval
=
interval
?
msec
:
0
;
list_init
(
&
timer
->
entry
);
IDispatch_AddRef
(
disp
);
timer
->
disp
=
disp
;
...
...
@@ -363,6 +366,8 @@ static void process_task(task_t *task)
static
LRESULT
process_timer
(
void
)
{
thread_data_t
*
thread_data
=
get_thread_data
(
TRUE
);
HTMLDocument
*
doc
;
IDispatch
*
disp
;
DWORD
tc
;
task_timer_t
*
timer
;
...
...
@@ -377,10 +382,9 @@ static LRESULT process_timer(void)
return
0
;
}
list_remove
(
&
timer
->
entry
);
list_init
(
&
timer
->
entry
);
call_disp_func
(
timer
->
doc
,
timer
->
disp
);
doc
=
timer
->
doc
;
disp
=
timer
->
disp
;
IDispatch_AddRef
(
disp
);
if
(
timer
->
interval
)
{
timer
->
time
+=
timer
->
interval
;
...
...
@@ -388,6 +392,10 @@ static LRESULT process_timer(void)
}
else
{
release_task_timer
(
thread_data
->
thread_hwnd
,
timer
);
}
call_disp_func
(
doc
,
disp
);
IDispatch_Release
(
disp
);
}
KillTimer
(
thread_data
->
thread_hwnd
,
TIMER_ID
);
...
...
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