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 ---
It happened to me while forcing hidraw driver to be loaded before SDL. It's causes winebus to be loaded twice and created two devices for each HID device.
dlls/ntoskrnl.exe/ntoskrnl.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 18b17f89fd8..c78d373ed01 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -3607,6 +3607,7 @@ static BOOLEAN get_drv_name( UNICODE_STRING *drv_name, const UNICODE_STRING *ser lstrcpyW( str, driverW ); lstrcpynW( str + lstrlenW(driverW), service_name->Buffer + lstrlenW(servicesW), service_name->Length/sizeof(WCHAR) - lstrlenW(servicesW) + 1 ); + wcslwr(str + lstrlenW(driverW)); RtlInitUnicodeString( drv_name, str ); return TRUE; } -- 2.23.0