Hardware IDs and Compatible IDs shouldn't be case sensitive

svn path=/trunk/; revision=19256
This commit is contained in:
Hervé Poussineau 2005-11-15 22:35:15 +00:00
parent b8ef8fda19
commit 5c322795a8

View file

@ -4425,7 +4425,7 @@ SetupDiBuildDriverInfoList(
DriverAlreadyAdded = FALSE; DriverAlreadyAdded = FALSE;
for (DriverRank = 0, currentId = (LPCWSTR)HardwareIDs; !DriverAlreadyAdded && *currentId; currentId += wcslen(currentId) + 1, DriverRank++) for (DriverRank = 0, currentId = (LPCWSTR)HardwareIDs; !DriverAlreadyAdded && *currentId; currentId += wcslen(currentId) + 1, DriverRank++)
{ {
if (wcscmp(DeviceId, currentId) == 0) if (wcsicmp(DeviceId, currentId) == 0)
{ {
AddDriverToList( AddDriverToList(
&((struct DeviceInfoElement *)DeviceInfoData->Reserved)->DriverListHead, &((struct DeviceInfoElement *)DeviceInfoData->Reserved)->DriverListHead,
@ -4446,7 +4446,7 @@ SetupDiBuildDriverInfoList(
{ {
for (DriverRank = 0, currentId = (LPCWSTR)CompatibleIDs; !DriverAlreadyAdded && *currentId; currentId += wcslen(currentId) + 1, DriverRank++) for (DriverRank = 0, currentId = (LPCWSTR)CompatibleIDs; !DriverAlreadyAdded && *currentId; currentId += wcslen(currentId) + 1, DriverRank++)
{ {
if (wcscmp(DeviceId, currentId) == 0) if (wcsicmp(DeviceId, currentId) == 0)
{ {
AddDriverToList( AddDriverToList(
&((struct DeviceInfoElement *)DeviceInfoData->Reserved)->DriverListHead, &((struct DeviceInfoElement *)DeviceInfoData->Reserved)->DriverListHead,