wineesd.drv: Add the missing calls to ESD_WaveClose/ESD_WaveInit.
Michael Stefaniuc
mstefani at redhat.de
Wed Apr 21 15:47:56 CDT 2010
This is the "proper" fix suggested by Maarten. Though I still
maintain that the real fix is: Carthago delenda est.
The patch compiles and Wine still beeps with the Esound driver.
---
dlls/wineesd.drv/audio.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wineesd.drv/audio.c b/dlls/wineesd.drv/audio.c
index 3d4225a..9f7ff00 100644
--- a/dlls/wineesd.drv/audio.c
+++ b/dlls/wineesd.drv/audio.c
@@ -1561,7 +1561,9 @@ DWORD WINAPI ESD_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
switch (wMsg) {
case DRVM_INIT:
+ return ESD_WaveInit();
case DRVM_EXIT:
+ return ESD_WaveClose();
case DRVM_ENABLE:
case DRVM_DISABLE:
/* FIXME: Pretend this is supported */
@@ -2073,7 +2075,9 @@ DWORD WINAPI ESD_widMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
wDevID, wMsg, dwUser, dwParam1, dwParam2);
switch (wMsg) {
case DRVM_INIT:
+ return ESD_WaveInit();
case DRVM_EXIT:
+ return ESD_WaveClose();
case DRVM_ENABLE:
case DRVM_DISABLE:
/* FIXME: Pretend this is supported */
--
1.7.1.rc2
bye
michael
More information about the wine-patches
mailing list