winebus.sys: Don't do anything in udev_driver_unload if udev was not initialized.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-09-27 12:37:44 +02:00 committed by Alexandre Julliard
parent eabb3d444c
commit ef59d2d11f
1 changed files with 3 additions and 0 deletions

View File

@ -1488,6 +1488,9 @@ void udev_driver_unload( void )
{
TRACE("Unload Driver\n");
if (!deviceloop_handle)
return;
write(deviceloop_control[1], "q", 1);
WaitForSingleObject(deviceloop_handle, INFINITE);
close(deviceloop_control[0]);