VirtualBox

Ignore:
Timestamp:
Dec 9, 2014 8:09:27 AM (10 years ago)
Author:
vboxsync
Message:

Additions/VBoxGuest: simlify the fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r53483 r53484  
    134134#ifdef VBOXGUEST_WITH_INPUT_DRIVER
    135135static struct input_dev        *g_pInputDevice = NULL;
    136 static bool                     g_fInputDeviceRegistered = false;
    137136#endif
    138137
     
    452451            return rc;
    453452        }
    454         g_fInputDeviceRegistered = true;
    455453    }
    456454    /* Do what one of our competitors apparently does as that works. */
     
    477475{
    478476    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 */
    486482
    487483
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette