mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
win midi: more initialization checks
This commit is contained in:
parent
af60bcad49
commit
40f508d2aa
@ -1478,7 +1478,7 @@ static void I_WIN_StopSong(void *handle)
|
||||
{
|
||||
MMRESULT mmr;
|
||||
|
||||
if (!hMidiStream)
|
||||
if (!hPlayerThread)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1488,6 +1488,11 @@ static void I_WIN_StopSong(void *handle)
|
||||
CloseHandle(hPlayerThread);
|
||||
hPlayerThread = NULL;
|
||||
|
||||
if (!hMidiStream)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
mmr = midiStreamStop(hMidiStream);
|
||||
if (mmr != MMSYSERR_NOERROR)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user