[PATCH] mmsystem.dll16: Pass through MCI_LIST, MCI_SETAUDIO, and MCI_SETVIDEO.

Alex Henrie alexhenrie24 at gmail.com
Tue Nov 28 00:03:35 CST 2017


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
The lParam for all of these messages is an MCI_GENERIC_PARMS pointer,
which does not require any special translation.

This gets Wine closer to running the science game "What's the Secret?"
by 3M Learning Software without warnings.
---
 dlls/mmsystem.dll16/mci16.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/mmsystem.dll16/mci16.c b/dlls/mmsystem.dll16/mci16.c
index b356a4431b..d7a356d527 100644
--- a/dlls/mmsystem.dll16/mci16.c
+++ b/dlls/mmsystem.dll16/mci16.c
@@ -134,8 +134,7 @@ static MMSYSTEM_MapType	MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l
     if (*lParam == 0)
 	return MMSYSTEM_MAP_OK;
     /* FIXME: to add also (with seg/linear modifications to do):
-     * MCI_LIST, MCI_LOAD, MCI_QUALITY, MCI_RESERVE, MCI_RESTORE, MCI_SAVE
-     * MCI_SETAUDIO, MCI_SETTUNER, MCI_SETVIDEO
+     * MCI_LOAD, MCI_QUALITY, MCI_RESERVE, MCI_RESTORE, MCI_SAVE, MCI_SETTUNER
      */
     switch (wMsg) {
 	/* case MCI_CAPTURE */
@@ -148,6 +147,7 @@ static MMSYSTEM_MapType	MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l
     case MCI_DELETE:
     case MCI_GETDEVCAPS:
 	/* case MCI_INDEX: */
+    case MCI_LIST:
 	/* case MCI_MARK: */
 	/* case MCI_MONITOR: */
     case MCI_PASTE:
@@ -158,6 +158,8 @@ static MMSYSTEM_MapType	MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l
     case MCI_RESUME:
     case MCI_SEEK:
     case MCI_SET:
+    case MCI_SETAUDIO:
+    case MCI_SETVIDEO:
 	/* case MCI_SETTIMECODE:*/
 	/* case MCI_SIGNAL:*/
     case MCI_SPIN:
-- 
2.15.0




More information about the wine-devel mailing list