VirtualBox

Changeset 12075 in vbox


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

VirtualBox4: 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/VirtualBox4/src/VBoxConsoleWnd.cpp

    r12018 r12075  
    17951795            QString info;
    17961796
    1797             bool isUSBEnabled = cmachine.GetUSBController().GetEnabled();
    1798             if (isUSBEnabled)
     1797            CUSBController usbctl = cmachine.GetUSBController();
     1798            if (    !usbctl.isNull()
     1799                &&  usbctl.GetEnabled())
    17991800            {
    18001801                mDevicesUSBMenu->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