VirtualBox

Changeset 84816 in vbox for trunk/src


Ignore:
Timestamp:
Jun 12, 2020 12:53:12 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control: Also implemented a "force" flag for the reboot/shutdown command [build fix]. bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r84814 r84816  
    10211021            int fSystemShutdown = RTSYSTEM_SHUTDOWN_PLANNED;
    10221022
    1023             /* Translate GuestShutdownFlag_XXX into RTSYSTEM_SHUTDOWN_ flags. */
    1024             if (fAction & GuestShutdownFlag_Reboot)
     1023            /* Translate SHUTDOWN_FLAG_ into RTSYSTEM_SHUTDOWN_ flags. */
     1024            if (fAction & SHUTDOWN_FLAG_REBOOT)
    10251025                fSystemShutdown |= RTSYSTEM_SHUTDOWN_REBOOT;
    1026             else
     1026            else /* SHUTDOWN_FLAG_POWER_OFF */
    10271027                fSystemShutdown |= RTSYSTEM_SHUTDOWN_POWER_OFF;
    10281028
    1029             if (fAction & GuestShutdownFlag_Force)
     1029            if (fAction & SHUTDOWN_FLAG_FORCE)
    10301030                fSystemShutdown |= RTSYSTEM_SHUTDOWN_FORCE;
    10311031
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