VirtualBox

Changeset 105576 in vbox


Ignore:
Timestamp:
Aug 2, 2024 12:58:21 PM (4 months ago)
Author:
vboxsync
Message:

Main/Display: Return VBOX_E_NOT_SUPPORTED when DevVGA returns VERR_NOT_SUPPORTED. This is typically because the screen size is 0x0, which is a valid config before the VM starts executing code, so the GUI needs to have a way to identify this in order to correctly ignore it.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r105266 r105576  
    2194221942            <link to="#takeScreenShotToArray" />.
    2194321943        </note>
     21944        <result name="VBOX_E_NOT_SUPPORTED">
     21945          Current screen configuration does not support taking a screen shot
     21946          (typically because it is 0x0 in size).
     21947        </result>
    2194421948      </desc>
    2194521949      <param name="screenId" type="unsigned long" dir="in"/>
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r105352 r105576  
    20392039        }
    20402040    }
    2041     else if (vrc == VERR_TRY_AGAIN)
    2042         hrc = setErrorBoth(E_UNEXPECTED, vrc, tr("Screenshot is not available at this time"));
     2041    else if (vrc == VERR_NOT_SUPPORTED) /* zero screen size (or too large screen size for vram) */
     2042        hrc = setErrorBoth(VBOX_E_NOT_SUPPORTED, vrc, tr("Screenshot is not possible at this time"));
     2043    else if (vrc == VERR_TRY_AGAIN)     /* resizing while taking screenshot */
     2044        hrc = setErrorBoth(E_UNEXPECTED, vrc, tr("Screenshot is not possible at this time"));
    20432045    else if (RT_FAILURE(vrc))
    20442046        hrc = setErrorBoth(VBOX_E_VM_ERROR, vrc, tr("Could not take a screenshot (%Rrc)"), vrc);
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