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
6910b0f1
Commit
6910b0f1
authored
Aug 10, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Fix fd leak on restarting timer.
parent
201c2653
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
time.c
dlls/winmm/time.c
+7
-4
No files found.
dlls/winmm/time.c
View file @
6910b0f1
...
...
@@ -243,16 +243,19 @@ static DWORD CALLBACK TIME_MMSysTimeThread(LPVOID arg)
static
void
TIME_MMTimeStart
(
void
)
{
TIME_TimeToDie
=
0
;
if
(
!
TIME_hMMTimer
)
{
HMODULE
mod
;
if
(
pipe
(
TIME_fdWake
)
<
0
)
{
if
(
TIME_fdWake
[
0
]
<
0
)
{
if
(
pipe
(
TIME_fdWake
)
<
0
)
{
TIME_fdWake
[
0
]
=
TIME_fdWake
[
1
]
=
-
1
;
ERR
(
"Cannot create pipe: %s
\n
"
,
strerror
(
errno
));
}
else
{
fcntl
(
TIME_fdWake
[
0
],
F_SETFL
,
O_NONBLOCK
);
fcntl
(
TIME_fdWake
[
1
],
F_SETFL
,
O_NONBLOCK
);
}
}
if
(
!
TIME_hMMTimer
)
{
HMODULE
mod
;
GetModuleHandleExW
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
,
(
LPCWSTR
)
TIME_MMSysTimeThread
,
&
mod
);
TIME_hMMTimer
=
CreateThread
(
NULL
,
0
,
TIME_MMSysTimeThread
,
mod
,
0
,
NULL
);
SetThreadPriority
(
TIME_hMMTimer
,
THREAD_PRIORITY_TIME_CRITICAL
);
...
...
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