ntoskrnl.exe: Handle already-loaded drivers in handle_bus_relations().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e3ad1cff73
commit
d498780294
|
@ -3756,7 +3756,10 @@ static void handle_bus_relations( DEVICE_OBJECT *device )
|
|||
strcpyW( buffer, servicesW );
|
||||
strcatW( buffer, driver );
|
||||
RtlInitUnicodeString( &string, buffer );
|
||||
if (ZwLoadDriver( &string ) != STATUS_SUCCESS)
|
||||
status = ZwLoadDriver( &string );
|
||||
if (status == STATUS_IMAGE_ALREADY_LOADED)
|
||||
return;
|
||||
else if (status != STATUS_SUCCESS)
|
||||
{
|
||||
ERR_(plugplay)( "Failed to load driver %s\n", debugstr_w(driver) );
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue