VirtualBox

Changeset 6096 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 15, 2007 10:41:11 PM (17 years ago)
Author:
vboxsync
Message:

HWVirtExEnabled and LogHistoryCount aren't in the default XML, so query them with defaults.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SystemPropertiesImpl.cpp

    r6076 r6096  
    410410
    411411    /* Note: not <BOOL> because Win32 defines BOOL as int */
    412     mHWVirtExEnabled = properties.value <bool> ("HWVirtExEnabled");
    413 
    414     mLogHistoryCount = properties.value <ULONG> ("LogHistoryCount");
     412    mHWVirtExEnabled = properties.valueOr <bool> ("HWVirtExEnabled", false);
     413
     414    mLogHistoryCount = properties.valueOr <ULONG> ("LogHistoryCount", 3);
    415415
    416416    return S_OK;
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