winmm: Reset MIDIHDR flags prior to return from midiStreamOut.

This commit is contained in:
Jörg Höhle 2010-02-02 08:37:09 +01:00 committed by Alexandre Julliard
parent afb374b7aa
commit bc76916b90
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {