Match MxMusicManager::ResetStream

This commit is contained in:
Christian Semmler 2024-01-18 14:42:37 -05:00
parent ffee6a4e5b
commit f1300d9de5
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C

View file

@ -81,7 +81,7 @@ MxResult MxMusicManager::ResetStream()
ResetBuffer();
}
if (m_midiHdrP->dwFlags & (MHDR_DONE | MHDR_PREPARED)) {
if (m_midiHdrP->dwFlags & MHDR_DONE || m_midiHdrP->dwFlags & MHDR_PREPARED) {
if (midiOutUnprepareHeader((HMIDIOUT) m_midiStreamH, m_midiHdrP, sizeof(MIDIHDR)) != MMSYSERR_NOERROR)
goto done;