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
31291cdc
Commit
31291cdc
authored
May 07, 2012
by
Andrew Eikum
Committed by
Alexandre Julliard
May 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Close open wave devices upon process detach.
parent
275dfb83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
waveform.c
dlls/winmm/waveform.c
+20
-0
No files found.
dlls/winmm/waveform.c
View file @
31291cdc
...
@@ -183,6 +183,26 @@ static LRESULT WID_Close(HWAVEIN hwave);
...
@@ -183,6 +183,26 @@ static LRESULT WID_Close(HWAVEIN hwave);
void
WINMM_DeleteWaveform
(
void
)
void
WINMM_DeleteWaveform
(
void
)
{
{
UINT
i
,
j
;
for
(
i
=
0
;
i
<
g_outmmdevices_count
;
++
i
){
WINMM_MMDevice
*
mmdevice
=
&
g_out_mmdevices
[
i
];
for
(
j
=
0
;
j
<
MAX_DEVICES
&&
mmdevice
->
devices
[
j
];
++
j
){
WINMM_Device
*
device
=
mmdevice
->
devices
[
j
];
if
(
device
->
open
)
SendMessageW
(
g_devices_hwnd
,
WODM_CLOSE
,
(
WPARAM
)
device
->
handle
,
0
);
}
}
for
(
i
=
0
;
i
<
g_inmmdevices_count
;
++
i
){
WINMM_MMDevice
*
mmdevice
=
&
g_in_mmdevices
[
i
];
for
(
j
=
0
;
j
<
MAX_DEVICES
&&
mmdevice
->
devices
[
j
];
++
j
){
WINMM_Device
*
device
=
mmdevice
->
devices
[
j
];
if
(
device
->
open
)
SendMessageW
(
g_devices_hwnd
,
WIDM_CLOSE
,
(
WPARAM
)
device
->
handle
,
0
);
}
}
/* FIXME: Free g_(in,out)_mmdevices? */
/* FIXME: Free g_(in,out)_mmdevices? */
DeleteCriticalSection
(
&
g_devthread_lock
);
DeleteCriticalSection
(
&
g_devthread_lock
);
}
}
...
...
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