wineoss.drv: 2 more close(mixer) added.
This commit is contained in:
parent
2c190ab438
commit
4b0a2f8670
|
@ -143,6 +143,7 @@ static DWORD AUX_GetVolume(WORD wDevID, LPDWORD lpdwVol)
|
|||
break;
|
||||
default:
|
||||
WARN("invalid device id=%04X !\n", wDevID);
|
||||
close(mixer);
|
||||
return MMSYSERR_NOTENABLED;
|
||||
}
|
||||
if (ioctl(mixer, cmd, &volume) == -1) {
|
||||
|
@ -205,6 +206,7 @@ static DWORD AUX_SetVolume(WORD wDevID, DWORD dwParam)
|
|||
break;
|
||||
default:
|
||||
WARN("invalid device id=%04X !\n", wDevID);
|
||||
close(mixer);
|
||||
return MMSYSERR_NOTENABLED;
|
||||
}
|
||||
if (ioctl(mixer, cmd, &volume) == -1) {
|
||||
|
|
Loading…
Reference in New Issue