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