Hardware IDs and Compatible IDs shouldn't be case sensitive
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 15 Nov 2005 22:35:15 +0000 (22:35 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 15 Nov 2005 22:35:15 +0000 (22:35 +0000)
svn path=/trunk/; revision=19256

reactos/lib/setupapi/devinst.c

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