VirtualBox

Changeset 38529 in vbox


Ignore:
Timestamp:
Aug 25, 2011 2:15:29 PM (13 years ago)
Author:
vboxsync
Message:

VBoxManage: suppress error message from showvminfo under rare circumstances

File:
1 edited

Legend:

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

    r37778 r38529  
    14371437    if (console)
    14381438    {
    1439         ComPtr<IDisplay> display;
    1440         CHECK_ERROR_RET(console, COMGETTER(Display)(display.asOutParam()), rc);
    14411439        do
    14421440        {
     1441            ComPtr<IDisplay> display;
     1442            rc = console->COMGETTER(Display)(display.asOutParam());
     1443            if (rc == E_ACCESSDENIED)
     1444                break; /* VM not powered up */
     1445            if (FAILED(rc))
     1446            {
     1447                com::GlueHandleComError(console, "COMGETTER(Display)(display.asOutParam())", rc, __FILE__, __LINE__);
     1448                return rc;
     1449            }
    14431450            ULONG xRes, yRes, bpp;
    14441451            rc = display->GetScreenResolution(0, &xRes, &yRes, &bpp);
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