Module: wine Branch: master Commit: ef59d2d11f5aed1d0bd249e159c672df2c8ccc3d URL: https://source.winehq.org/git/wine.git/?a=commit;h=ef59d2d11f5aed1d0bd249e15...
Author: Piotr Caban piotr@codeweavers.com Date: Fri Sep 27 12:37:44 2019 +0200
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
---
dlls/winebus.sys/bus_udev.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c index b72e6bf47d..6fa6efb7dc 100644 --- a/dlls/winebus.sys/bus_udev.c +++ b/dlls/winebus.sys/bus_udev.c @@ -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]);