Commit 485aed9f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winebus.sys: Don't do anything in iohid_driver_unload if iohid was not initialized.

parent ef59d2d1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment