VirtualBox

Ignore:
Timestamp:
Jan 15, 2013 2:12:18 PM (12 years ago)
Author:
vboxsync
Message:

VBoxTray: some auto-resize cleanup & todos/questions

File:
1 edited

Legend:

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

    r44194 r44296  
    267267    {
    268268        Log(("VBoxTray: ResizeDisplayDevice: EnumDisplaySettings error %d\n", GetLastError ()));
    269         return FALSE;
     269        /* @todo: perhaps more intelligent error reporting is needed here
     270         * return DISP_CHANGE_BADMODE to avoid retries & thus infinite looping */
     271        return DISP_CHANGE_BADMODE;
    270272    }
    271273
     
    346348    DWORD dwStatus = gCtx.pfnChangeDisplaySettingsEx(NULL, NULL, NULL, 0, NULL);
    347349    Log(("VBoxTray: ChangeDisplay return errorNo = %d\n", GetLastError()));
     350    /* @todo: if the pfnChangeDisplaySettingsEx returned status is
     351     * NOT DISP_CHANGE_SUCCESSFUL AND NOT DISP_CHANGE_BADMODE,
     352     * we will always end up in re-trying, see ResizeDisplayDevice
     353     * is this what we want actually?  */
    348354    return dwStatus;
    349355}
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