wineoss.drv: Initialize correctly the header before adding it to the queue.

This commit is contained in:
Christian Costa 2008-12-22 10:22:23 +01:00 committed by Alexandre Julliard
parent 0135bf8a0c
commit 6710560551
1 changed files with 3 additions and 0 deletions

View File

@ -848,7 +848,10 @@ static DWORD midAddBuffer(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
if (!(lpMidiHdr->dwFlags & MHDR_PREPARED)) return MIDIERR_UNPREPARED;
EnterCriticalSection(&crit_sect);
lpMidiHdr->dwFlags &= ~WHDR_DONE;
lpMidiHdr->dwFlags |= MHDR_INQUEUE;
lpMidiHdr->dwBytesRecorded = 0;
lpMidiHdr->lpNext = 0;
if (MidiInDev[wDevID].lpQueueHdr == 0) {
MidiInDev[wDevID].lpQueueHdr = lpMidiHdr;
} else {