Alias and Device Type are case insensitive.

This commit is contained in:
Marcus Meissner 2001-06-11 20:12:39 +00:00 committed by Alexandre Julliard
parent 5e7b201400
commit 9db72e3b58
1 changed files with 2 additions and 4 deletions

View File

@ -78,13 +78,11 @@ UINT MCI_GetDriverFromString(LPCSTR lpstrName)
ret = wmd->wDeviceID; ret = wmd->wDeviceID;
break; break;
} }
if (wmd->lpstrDeviceType && strcasecmp(wmd->lpstrDeviceType, lpstrName) == 0) {
if (wmd->lpstrDeviceType && strcmp(wmd->lpstrDeviceType, lpstrName) == 0) {
ret = wmd->wDeviceID; ret = wmd->wDeviceID;
break; break;
} }
if (wmd->lpstrAlias && strcasecmp(wmd->lpstrAlias, lpstrName) == 0) {
if (wmd->lpstrAlias && strcmp(wmd->lpstrAlias, lpstrName) == 0) {
ret = wmd->wDeviceID; ret = wmd->wDeviceID;
break; break;
} }