VirtualBox

Ignore:
Timestamp:
Apr 12, 2007 4:10:58 PM (18 years ago)
Author:
vboxsync
Message:

Pass the rc from poweroff and suspend around!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r2027 r2053  
    382382{
    383383    VMMDevState *pData = (VMMDevState*)pvUser;
     384    int rcRet = VINF_SUCCESS;
    384385    int rc;
    385386
     
    712713                    {
    713714                        LogRel(("Guest requests the VM to be suspended (paused)\n"));
    714                         requestHeader->rc = PDMDevHlpVMSuspend(pDevIns);
     715                        requestHeader->rc = rcRet = PDMDevHlpVMSuspend(pDevIns);
    715716                        break;
    716717                    }
     
    719720                    {
    720721                        LogRel(("Guest requests the VM to be turned off\n"));
    721                         requestHeader->rc = PDMDevHlpVMPowerOff(pDevIns); /** @todo pass the rc around! */
     722                        requestHeader->rc = rcRet = PDMDevHlpVMPowerOff(pDevIns);
    722723                        break;
    723724                    }
     
    11491150    }
    11501151
    1151     return VINF_SUCCESS;
     1152    return rcRet;
    11521153}
    11531154
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