winebus.sys: Don't do anything in iohid_driver_unload if iohid was not initialized.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ef59d2d11f
commit
485aed9f1c
|
@ -416,6 +416,10 @@ NTSTATUS iohid_driver_init(void)
|
|||
void iohid_driver_unload( void )
|
||||
{
|
||||
TRACE("Unloading Driver\n");
|
||||
|
||||
if (!run_loop_handle)
|
||||
return;
|
||||
|
||||
IOHIDManagerUnscheduleFromRunLoop(hid_manager, run_loop, kCFRunLoopDefaultMode);
|
||||
CFRunLoopStop(run_loop);
|
||||
WaitForSingleObject(run_loop_handle, INFINITE);
|
||||
|
|
Loading…
Reference in New Issue