Skip to content
Snippets Groups Projects
Commit 485aed9f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard
Browse files

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

parent ef59d2d1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment