Commit bc76916b authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

winmm: Reset MIDIHDR flags prior to return from midiStreamOut.

parent afb374b7
......@@ -1833,7 +1833,8 @@ MMRESULT WINAPI midiStreamOut(HMIDISTRM hMidiStrm, LPMIDIHDR lpMidiHdr,
if (!MMSYSTEM_GetMidiStream(hMidiStrm, &lpMidiStrm, NULL)) {
ret = MMSYSERR_INVALHANDLE;
} else {
lpMidiHdr->dwFlags |= MHDR_ISSTRM;
lpMidiHdr->dwFlags |= MHDR_ISSTRM | MHDR_INQUEUE;
lpMidiHdr->dwFlags &= ~MHDR_DONE;
if (!PostThreadMessageA(lpMidiStrm->dwThreadID,
WINE_MSM_HEADER, cbMidiHdr,
(LPARAM)lpMidiHdr)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment