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
daec24a9
Commit
daec24a9
authored
Sep 30, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Destroy timer after calling callback.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b0750422
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
time.c
dlls/winmm/time.c
+4
-9
No files found.
dlls/winmm/time.c
View file @
daec24a9
...
...
@@ -107,7 +107,7 @@ static CONDITION_VARIABLE TIME_cv;
*/
static
int
TIME_MMSysTimeCallback
(
void
)
{
WINE_TIMERENTRY
*
timer
,
copy
;
WINE_TIMERENTRY
*
timer
;
int
i
,
delta_time
;
/* since timeSetEvent() and timeKillEvent() can be called
...
...
@@ -139,15 +139,7 @@ static int TIME_MMSysTimeCallback(void)
if
(
delta_time
>
0
)
break
;
if
(
timer
->
wFlags
&
TIME_PERIODIC
)
{
timer
->
dwTriggerTime
+=
timer
->
wDelay
;
}
else
{
copy
=
*
timer
;
timer
->
wTimerID
=
0
;
timer
=
&
copy
;
}
switch
(
timer
->
wFlags
&
(
TIME_CALLBACK_EVENT_SET
|
TIME_CALLBACK_EVENT_PULSE
))
{
...
...
@@ -171,9 +163,12 @@ static int TIME_MMSysTimeCallback(void)
EnterCriticalSection
(
&
WINMM_cs
);
if
(
flags
&
TIME_KILL_SYNCHRONOUS
)
LeaveCriticalSection
(
&
TIME_cbcrst
);
if
(
id
!=
timer
->
wTimerID
)
timer
=
NULL
;
}
break
;
}
if
(
timer
&&
!
(
timer
->
wFlags
&
TIME_PERIODIC
))
timer
->
wTimerID
=
0
;
}
return
delta_time
;
}
...
...
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