VirtualBox

Changeset 50221 in vbox


Ignore:
Timestamp:
Jan 24, 2014 2:03:53 PM (11 years ago)
Author:
vboxsync
Message:

Main/HostPower: play safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostPower.cpp

    r50220 r50221  
    127127                                           value.asOutParam());
    128128            int fGlobal = 0;
    129             if (SUCCEEDED(rc))
     129            if (SUCCEEDED(rc) && !value.isEmpty())
    130130            {
    131131                if (value != "0")
     
    148148                                            value.asOutParam());
    149149                int fPerVM = 0;
    150                 if (SUCCEEDED(rc))
     150                if (SUCCEEDED(rc) && !value.isEmpty())
    151151                {
    152152                    /* per-VM overrides global */
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