VirtualBox

Changeset 41207 in vbox for trunk/src


Ignore:
Timestamp:
May 8, 2012 1:53:03 PM (13 years ago)
Author:
vboxsync
Message:

Additions/x11: VBoxClient should fail gracefully if the guest driver is not available.

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display.cpp

    r34918 r41207  
    173173                             | VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED,
    174174                             RT_INDEFINITE_WAIT, &fEvents);
     175        if (RT_FAILURE(rc) && rc != VERR_INTERRUPTED)  /* VERR_NO_MEMORY? */
     176            return rc;
    175177        /* Jiggle the mouse pointer to wake up the driver. */
    176178        XGrabPointer(pDisplay,
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless.cpp

    r28800 r41207  
    4040            return VERR_NOT_SUPPORTED;
    4141        }
    42         mSeamless.init();
     42        int rc = mSeamless.init();
     43        if (RT_FAILURE(rc))
     44            return rc;
    4345        /* Stay running as long as X does... */
    4446        Display *pDisplay = XOpenDisplay(NULL);
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