VirtualBox

Changeset 107606 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 9, 2025 7:31:32 PM (4 weeks ago)
Author:
vboxsync
Message:

FE/VBoxManage/VBoxManageControlVM.cpp: Remove useless if condition as it is implied by the other one already, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r106061 r107606  
    693693
    694694            CHECK_ERROR(pGuest, Shutdown(ComSafeArrayAsInParam(aShutdownFlags)));
    695             if (FAILED(hrc))
    696             {
    697                 if (hrc == VBOX_E_NOT_SUPPORTED)
    698                 {
    699                     if (fReboot)
    700                         RTMsgError(ControlVM::tr("Current installed Guest Additions don't support rebooting the guest."));
    701                     else
    702                         RTMsgError(ControlVM::tr("Current installed Guest Additions don't support shutting down the guest."));
    703                 }
     695            if (hrc == VBOX_E_NOT_SUPPORTED)
     696            {
     697                if (fReboot)
     698                    RTMsgError(ControlVM::tr("Current installed Guest Additions don't support rebooting the guest."));
     699                else
     700                    RTMsgError(ControlVM::tr("Current installed Guest Additions don't support shutting down the guest."));
    704701            }
    705702        }
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