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
41c45f36
Commit
41c45f36
authored
Jul 23, 2015
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jul 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Ensure the player thread termination when stopping.
parent
f94670b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mcimidi.c
dlls/mciseq/mcimidi.c
+5
-2
No files found.
dlls/mciseq/mcimidi.c
View file @
41c45f36
...
@@ -776,7 +776,7 @@ static DWORD MIDI_mciStop(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_GENERIC_PARMS
...
@@ -776,7 +776,7 @@ static DWORD MIDI_mciStop(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_GENERIC_PARMS
if
(
oldstat
==
MCI_MODE_PAUSE
)
if
(
oldstat
==
MCI_MODE_PAUSE
)
dwRet
=
midiOutReset
((
HMIDIOUT
)
wmm
->
hMidi
);
dwRet
=
midiOutReset
((
HMIDIOUT
)
wmm
->
hMidi
);
if
(
(
dwFlags
&
MCI_WAIT
)
&&
wmm
->
hThread
)
if
(
wmm
->
hThread
)
WaitForSingleObject
(
wmm
->
hThread
,
INFINITE
);
WaitForSingleObject
(
wmm
->
hThread
,
INFINITE
);
}
}
...
@@ -808,7 +808,10 @@ static DWORD MIDI_mciClose(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_GENERIC_PARMS
...
@@ -808,7 +808,10 @@ static DWORD MIDI_mciClose(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_GENERIC_PARMS
wmm
->
hFile
=
0
;
wmm
->
hFile
=
0
;
TRACE
(
"hFile closed !
\n
"
);
TRACE
(
"hFile closed !
\n
"
);
}
}
if
(
wmm
->
hThread
)
CloseHandle
(
wmm
->
hThread
);
if
(
wmm
->
hThread
)
{
CloseHandle
(
wmm
->
hThread
);
wmm
->
hThread
=
0
;
}
HeapFree
(
GetProcessHeap
(),
0
,
wmm
->
tracks
);
HeapFree
(
GetProcessHeap
(),
0
,
wmm
->
tracks
);
HeapFree
(
GetProcessHeap
(),
0
,
wmm
->
lpstrElementName
);
HeapFree
(
GetProcessHeap
(),
0
,
wmm
->
lpstrElementName
);
HeapFree
(
GetProcessHeap
(),
0
,
wmm
->
lpstrCopyright
);
HeapFree
(
GetProcessHeap
(),
0
,
wmm
->
lpstrCopyright
);
...
...
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