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
93b6f158
Commit
93b6f158
authored
Jul 19, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Don't operate on freed data in timer.
parent
7107a696
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
time.c
dlls/winmm/time.c
+4
-2
No files found.
dlls/winmm/time.c
View file @
93b6f158
...
...
@@ -359,6 +359,7 @@ MMRESULT WINAPI timeSetEvent(UINT wDelay, UINT wResol, LPTIMECALLBACK lpFunc,
MMRESULT
WINAPI
timeKillEvent
(
UINT
wID
)
{
WINE_TIMERENTRY
*
lpSelf
=
NULL
,
*
lpTimer
;
DWORD
wFlags
;
TRACE
(
"(%u)
\n
"
,
wID
);
EnterCriticalSection
(
&
WINMM_cs
);
...
...
@@ -378,10 +379,11 @@ MMRESULT WINAPI timeKillEvent(UINT wID)
WARN
(
"wID=%u is not a valid timer ID
\n
"
,
wID
);
return
MMSYSERR_INVALPARAM
;
}
if
(
lpSelf
->
wFlags
&
TIME_KILL_SYNCHRONOUS
)
wFlags
=
lpSelf
->
wFlags
;
if
(
wFlags
&
TIME_KILL_SYNCHRONOUS
)
EnterCriticalSection
(
&
TIME_cbcrst
);
HeapFree
(
GetProcessHeap
(),
0
,
lpSelf
);
if
(
lpSelf
->
wFlags
&
TIME_KILL_SYNCHRONOUS
)
if
(
wFlags
&
TIME_KILL_SYNCHRONOUS
)
LeaveCriticalSection
(
&
TIME_cbcrst
);
return
TIMERR_NOERROR
;
}
...
...
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