ntoskrnl.exe: Properly handle already-loaded drivers in handle_bus_relations().
This fixes a regression introduced by d498780294
.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46469
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8e0139af2a
commit
48504a2cc7
|
@ -3758,9 +3758,7 @@ static void handle_bus_relations( DEVICE_OBJECT *device )
|
|||
strcatW( buffer, driver );
|
||||
RtlInitUnicodeString( &string, buffer );
|
||||
status = ZwLoadDriver( &string );
|
||||
if (status == STATUS_IMAGE_ALREADY_LOADED)
|
||||
return;
|
||||
else if (status != STATUS_SUCCESS)
|
||||
if (status != STATUS_SUCCESS && status != STATUS_IMAGE_ALREADY_LOADED)
|
||||
{
|
||||
ERR_(plugplay)( "Failed to load driver %s\n", debugstr_w(driver) );
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue