VirtualBox

Changeset 98939 in vbox


Ignore:
Timestamp:
Mar 13, 2023 3:51:19 PM (21 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Fix for UISession::acquireMonitorCount; Avoid getting into case with no visible screens if something COM related gone wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r98938 r98939  
    15211521bool UISession::acquireMonitorCount(ulong &uCount)
    15221522{
     1523    // WORKAROUND:
     1524    // We certainly don't want to get into
     1525    // 'no visible screens' case if something
     1526    // gone wrong...  Inventing sane default.
     1527    uCount = 1;
     1528
    15231529    CMachine comMachine = machine();
    15241530    CGraphicsAdapter comAdapter = comMachine.GetGraphicsAdapter();
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