Skip to content

Commit

Permalink
Ignore case when opening device
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuanx committed Nov 14, 2021
1 parent def25e2 commit 07fc6fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ ogg-winmm also provides separate volume control for CDDA/MIDI/WAVE, which has be

# Revisions:

v.2021.11.15:
- Ignore case when opening device.

v.2021.11.11:
- Post notify message to the correct window.
- Fix a race condition that sometimes causes music to stutter.
Expand Down
2 changes: 1 addition & 1 deletion ogg-winmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ MCIERROR WINAPI fake_mciSendCommandA(MCIDEVICEID IDDevice, UINT uMsg, DWORD_PTR
dprintf(" MCI_OPEN_TYPE\n");
dprintf(" -> %s\n", parms->lpstrDeviceType);

if (strcmp(parms->lpstrDeviceType, "cdaudio") == 0)
if (stricmp(parms->lpstrDeviceType, "cdaudio") == 0)
{
dprintf(" Returning magic device id for MCI_DEVTYPE_CD_AUDIO\n");
parms->wDeviceID = MAGIC_DEVICEID;
Expand Down

0 comments on commit 07fc6fe

Please sign in to comment.