VirtualBox

Changeset 84343 in vbox for trunk


Ignore:
Timestamp:
May 18, 2020 6:27:08 PM (5 years ago)
Author:
vboxsync
Message:

Main: Adjusted AutoCaller.rc() to AutoCaller.isOk() in two places as VC++ 14.2 warned about bool conversion. bugref:8489

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r83741 r84343  
    25852585        ComObjPtr<GuestProcess> pCurProc = itProcs->second;
    25862586        AutoCaller procCaller(pCurProc);
    2587         if (procCaller.rc())
     2587        if (!procCaller.isOk())
    25882588            return VERR_COM_INVALID_OBJECT_STATE;
    25892589
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r83169 r84343  
    40874087        ComObjPtr<Machine> &pMachine = *it;
    40884088        AutoCaller machCaller(pMachine);
    4089         if (machCaller.rc())
     4089        if (!machCaller.isOk())
    40904090            continue;       // we can't ask inaccessible machines for their names
    40914091
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