Marcus Meissner : wineoss.drv: 2 more close(mixer) added.
Alexandre Julliard
julliard at winehq.org
Thu Sep 10 09:07:59 CDT 2009
Module: wine
Branch: master
Commit: 4b0a2f86708bbc72685b357e08e779e8ff2e922d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4b0a2f86708bbc72685b357e08e779e8ff2e922d
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Thu Sep 10 00:33:00 2009 +0200
wineoss.drv: 2 more close(mixer) added.
---
dlls/wineoss.drv/mmaux.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wineoss.drv/mmaux.c b/dlls/wineoss.drv/mmaux.c
index de5ecea..ff62107 100644
--- a/dlls/wineoss.drv/mmaux.c
+++ b/dlls/wineoss.drv/mmaux.c
@@ -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) {
More information about the wine-cvs
mailing list