VirtualBox

Changeset 20201 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 2, 2009 5:34:43 PM (16 years ago)
Author:
vboxsync
Message:

Fixed a regression in VBoxTray: setvideomodehint was ignored if there was an inactive secondary display.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp

    r19836 r20201  
    257257                     ENUM_CURRENT_SETTINGS, &paDeviceModes[DevNum]))
    258258                {
     259                    /* ENUM_CURRENT_SETTINGS returns FALSE when the display is not active:
     260                     * for example a disabled secondary display.
     261                     * Do not return here, ignore the error and set the display info to 0x0x0.
     262                     */
    259263                    Log(("EnumDisplaySettings(ENUM_CURRENT_SETTINGS) err %d\n", GetLastError ()));
    260                     return FALSE;
     264                    ZeroMemory(&paDeviceModes[DevNum], sizeof(DEVMODE));
    261265                }
    262266            }
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