[PATCH] wineoss.drv: 2 more close(mixer) added

Marcus Meissner marcus at jet.franken.de
Wed Sep 9 17:33:00 CDT 2009


---
 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) {
-- 
1.5.6



More information about the wine-patches mailing list