Commit 48504a2c authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntoskrnl.exe: Properly handle already-loaded drivers in handle_bus_relations().

This fixes a regression introduced by d4987802. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46469Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 8e0139af
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment