From 9db72e3b58cc8ef73749b52ceb44629338dd4b3c Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 11 Jun 2001 20:12:39 +0000 Subject: [PATCH] Alias and Device Type are case insensitive. --- dlls/winmm/mci.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; }