https://bugs.winehq.org/show_bug.cgi?id=42176
Bug ID: 42176 Summary: Magic School Bus - Dinosaurs claims audiocd is busy due to MCICDA_Open failure Product: Wine Version: 2.0-rc4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci Assignee: wine-bugs@winehq.org Reporter: z.figura12@gmail.com Distribution: ---
Created attachment 56798 --> https://bugs.winehq.org/attachment.cgi?id=56798 output with WINEDEBUG=+file,+mci,+mcicda,+driver,+msgbox
Magic School Bus Explores in the Age of Dinosaurs, an old educational game, fails to launch, claiming:
The CD Audio device is in use by another application. Please, close that application and try again.
I've checked winecfg—the cd is mounted to the L: drive. So I did a relay trace and eventually found the problem appeared to be due to the MCICDA_Open() function returning an error code of 0x123, which is MCIERR_MUST_USE_SHAREABLE. This is returned because the function attempts to call CreateFileW with the path "\.\I:", which fails with 0xc0000022, aka STATUS_ACCESS_DENIED. The drive letter is notable—the function appears to work by iterating through every drive letter from \.\A: to \.\Z: until it finds one whose drive type is DRIVE_CDROM. So there appears to be at least two problem here: (1) I: is very clearly the wrong drive [it is a CD drive, but currently has a different game in it which I was working on] (2) that either MCICDA_Open or CreateFileW should not be returning an error in this case—I did try manually changing the drive letter to start at L, and it failed with the same error, so the program appears to be expecting success.
https://bugs.winehq.org/show_bug.cgi?id=42176
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Depends on| |27244
https://bugs.winehq.org/show_bug.cgi?id=42176
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Can you try using letter D? Because many of these older games can't handle for example having 2 CD drives.
https://bugs.winehq.org/show_bug.cgi?id=42176
--- Comment #2 from Zebediah Figura z.figura12@gmail.com --- I get the same problem. I tested on Windows too; the game can handle being installed from a different drive (though it must be run from the same drive as it was installed from).
https://bugs.winehq.org/show_bug.cgi?id=42176
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winmm&mci |-unknown Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- Turns out I didn't have read access to the drive. Fixing that solved the problem.
https://bugs.winehq.org/show_bug.cgi?id=42176
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Austin English austinenglish@gmail.com --- Closing.