VirtualBox

Changeset 105576 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 2, 2024 12:58:21 PM (8 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164248
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette