diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c index d70af6c86ba..5e12203c148 100644 --- a/dlls/winmm/mci.c +++ b/dlls/winmm/mci.c @@ -78,13 +78,11 @@ UINT MCI_GetDriverFromString(LPCSTR lpstrName) ret = wmd->wDeviceID; break; } - - if (wmd->lpstrDeviceType && strcmp(wmd->lpstrDeviceType, lpstrName) == 0) { + if (wmd->lpstrDeviceType && strcasecmp(wmd->lpstrDeviceType, lpstrName) == 0) { ret = wmd->wDeviceID; break; } - - if (wmd->lpstrAlias && strcmp(wmd->lpstrAlias, lpstrName) == 0) { + if (wmd->lpstrAlias && strcasecmp(wmd->lpstrAlias, lpstrName) == 0) { ret = wmd->wDeviceID; break; }