From c697cc3d59cda810467df0bce13a5a14944c9dde Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sun, 14 Nov 1999 19:44:02 +0000 Subject: [PATCH] Ignore MCI_OPEN_ELEMENT in CDAUDIO_mciOpen. --- dlls/winmm/mcicda/mcicda.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/winmm/mcicda/mcicda.c b/dlls/winmm/mcicda/mcicda.c index 60ce5cd24f2..a4a2f4da7d2 100644 --- a/dlls/winmm/mcicda/mcicda.c +++ b/dlls/winmm/mcicda/mcicda.c @@ -228,8 +228,13 @@ static DWORD CDAUDIO_mciOpen(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpOpe wmcda->fShareable = dwFlags & MCI_OPEN_SHAREABLE; } if (dwFlags & MCI_OPEN_ELEMENT) { - TRACE("MCI_OPEN_ELEMENT !\n"); - return MCIERR_NO_ELEMENT_ALLOWED; + if (dwFlags & MCI_OPEN_ELEMENT_ID) { + WARN("MCI_OPEN_ELEMENT_ID %8lx ! Abort", (DWORD)lpOpenParms->lpstrElementName); + return MCIERR_NO_ELEMENT_ALLOWED; + } + WARN("MCI_OPEN_ELEMENT %s ignored\n",lpOpenParms->lpstrElementName); + /*return MCIERR_NO_ELEMENT_ALLOWED; + bon 19991106 allows cdplayer.exe to run*/ } wmcda->wNotifyDeviceID = dwDeviceID;