ntoskrnl.exe: Use case-insensitive driver name comparison.

For instance winebus driver is sometimes referred as WineBus, when
loaded by winedevice.exe, and sometimes as winebus, when loaded from
devices. This makes Wine try to load it twice and initializes the
backend twice as well.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2019-09-19 13:45:11 +02:00 committed by Alexandre Julliard
parent eb699821d0
commit e6138a52a9
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ static int wine_drivers_rb_compare( const void *key, const struct wine_rb_entry
const struct wine_driver *driver = WINE_RB_ENTRY_VALUE( entry, const struct wine_driver, entry );
const UNICODE_STRING *k = key;
return RtlCompareUnicodeString( k, &driver->driver_obj.DriverName, FALSE );
return RtlCompareUnicodeString( k, &driver->driver_obj.DriverName, TRUE );
}
static struct wine_rb_tree wine_drivers = { wine_drivers_rb_compare };