winebus.sys: Don't return too early if SDL initialization succeeds.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2020-01-21 09:19:12 -06:00 committed by Alexandre Julliard
parent 95d267369a
commit 6cb3d0fb37
1 changed files with 4 additions and 1 deletions

View File

@ -559,7 +559,10 @@ static NTSTATUS fdo_pnp_dispatch(DEVICE_OBJECT *device, IRP *irp)
if (check_bus_option(&SDL_enabled, 1))
{
if (sdl_driver_init() == STATUS_SUCCESS)
return STATUS_SUCCESS;
{
irp->IoStatus.u.Status = STATUS_SUCCESS;
break;
}
}
udev_driver_init();
iohid_driver_init();