winecoreaudio.drv: Initialize correctly the header before adding it to the queue.
This commit is contained in:
parent
bf5912208f
commit
d700042f05
|
@ -689,6 +689,10 @@ static DWORD MIDIIn_AddBuffer(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
EnterCriticalSection(&midiInLock);
|
EnterCriticalSection(&midiInLock);
|
||||||
|
lpMidiHdr->dwFlags &= ~WHDR_DONE;
|
||||||
|
lpMidiHdr->dwFlags |= MHDR_INQUEUE;
|
||||||
|
lpMidiHdr->dwBytesRecorded = 0;
|
||||||
|
lpMidiHdr->lpNext = 0;
|
||||||
if (sources[wDevID].lpQueueHdr == 0) {
|
if (sources[wDevID].lpQueueHdr == 0) {
|
||||||
sources[wDevID].lpQueueHdr = lpMidiHdr;
|
sources[wDevID].lpQueueHdr = lpMidiHdr;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue