mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 00:58:16 +00:00
Hardware IDs and Compatible IDs shouldn't be case sensitive
svn path=/trunk/; revision=19256
This commit is contained in:
parent
b8ef8fda19
commit
5c322795a8
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue