Changeset 53484 in vbox for trunk/src/VBox/Additions/common/VBoxGuest
- Timestamp:
- Dec 9, 2014 8:09:27 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
r53483 r53484 134 134 #ifdef VBOXGUEST_WITH_INPUT_DRIVER 135 135 static struct input_dev *g_pInputDevice = NULL; 136 static bool g_fInputDeviceRegistered = false;137 136 #endif 138 137 … … 452 451 return rc; 453 452 } 454 g_fInputDeviceRegistered = true;455 453 } 456 454 /* Do what one of our competitors apparently does as that works. */ … … 477 475 { 478 476 VbglGRFree(&g_pMouseStatusReq->header); 479 /* see documentation of input_register_device() */ 480 if (g_fInputDeviceRegistered) 481 input_unregister_device(g_pInputDevice); 482 else 483 input_free_device(g_pInputDevice); 484 } 485 #endif 477 /* See documentation of input_register_device(): input_free_device() 478 * should not be called after a device has been registered. */ 479 input_unregister_device(g_pInputDevice); 480 } 481 #endif /* VBOXGUEST_WITH_INPUT_DRIVER */ 486 482 487 483
Note:
See TracChangeset
for help on using the changeset viewer.