Changeset 53483 in vbox
- Timestamp:
- Dec 8, 2014 4:57:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
r52700 r53483 134 134 #ifdef VBOXGUEST_WITH_INPUT_DRIVER 135 135 static struct input_dev *g_pInputDevice = NULL; 136 static bool g_fInputDeviceRegistered = false; 136 137 #endif 137 138 … … 451 452 return rc; 452 453 } 454 g_fInputDeviceRegistered = true; 453 455 } 454 456 /* Do what one of our competitors apparently does as that works. */ … … 475 477 { 476 478 VbglGRFree(&g_pMouseStatusReq->header); 477 input_unregister_device(g_pInputDevice); 478 input_free_device(g_pInputDevice); 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); 479 484 } 480 485 #endif
Note:
See TracChangeset
for help on using the changeset viewer.