VirtualBox

Ignore:
Timestamp:
Sep 3, 2008 8:47:44 PM (16 years ago)
Author:
vboxsync
Message:

VirtualBox3: Check if the usb controller isn't NULL before calling GetEnabled(). OSE and solaris don't have a controller (VBOX_WITH_USB isn't defined).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r11987 r12076  
    18051805            QString info;
    18061806
    1807             bool isUSBEnabled = cmachine.GetUSBController().GetEnabled();
    1808             if (isUSBEnabled)
     1807            CUSBController usbctl = cmachine.GetUSBController();
     1808            if (    !usbctl.isNull()
     1809                &&  usbctl.GetEnabled())
    18091810            {
    18101811                devicesUSBMenu->setEnabled (isRunningOrPaused);
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