VirtualBox

Changeset 105654 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Aug 12, 2024 5:25:27 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164345
Message:

Main/VirtualBoxBase, DisplayImpl: Suppress logging of "Screenshot is not possible" errors when the VGA config is invalid. Confused so many users looking at log files that this is the real issue (which it never is).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/VirtualBoxBase.cpp

    r98103 r105654  
    821821
    822822/**
     823 * Like setErrorBoth(), but disables the "log" flag in the call to setErrorInternal().
     824 * @param hrc
     825 * @param vrc
     826 * @param pcszMsgFmt
     827 * @param ...
     828 * @return
     829 */
     830HRESULT VirtualBoxBase::setErrorBothNoLog(HRESULT hrc, int vrc, const char *pcszMsgFmt, ...)
     831{
     832    va_list va;
     833    va_start(va, pcszMsgFmt);
     834    hrc = setErrorInternalV(hrc,
     835                            this->getClassIID(),
     836                            this->getComponentName(),
     837                            pcszMsgFmt, va,
     838                            false /* aWarning */,
     839                            false /* aLogIt */,
     840                            vrc /* aResultDetail */);
     841    va_end(va);
     842    return hrc;
     843}
     844
     845/**
    823846 * Clear the current error information.
    824847 */
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