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

This commit is contained in:
Christian Costa 2008-12-22 12:05:03 +01:00 committed by Alexandre Julliard
parent bf5912208f
commit d700042f05
1 changed files with 4 additions and 0 deletions

View File

@ -689,6 +689,10 @@ static DWORD MIDIIn_AddBuffer(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
}
EnterCriticalSection(&midiInLock);
lpMidiHdr->dwFlags &= ~WHDR_DONE;
lpMidiHdr->dwFlags |= MHDR_INQUEUE;
lpMidiHdr->dwBytesRecorded = 0;
lpMidiHdr->lpNext = 0;
if (sources[wDevID].lpQueueHdr == 0) {
sources[wDevID].lpQueueHdr = lpMidiHdr;
} else {