mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 18:03:39 +00:00
wineoss.drv: Mark every buffer being added.
This commit is contained in:
parent
cb28969c2a
commit
8023a80ec3
|
@ -846,6 +846,7 @@ static DWORD midAddBuffer(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
|
|||
if (!(lpMidiHdr->dwFlags & MHDR_PREPARED)) return MIDIERR_UNPREPARED;
|
||||
|
||||
EnterCriticalSection(&crit_sect);
|
||||
lpMidiHdr->dwFlags |= MHDR_INQUEUE;
|
||||
if (MidiInDev[wDevID].lpQueueHdr == 0) {
|
||||
MidiInDev[wDevID].lpQueueHdr = lpMidiHdr;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue