VirtualBox

Changeset 41066 in vbox


Ignore:
Timestamp:
Apr 26, 2012 10:00:30 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77634
Message:

Main: workaround for GUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r41049 r41066  
    58405840                                       &u32OriginX, &u32OriginY, &u32Width, &u32Height, &u16Flags);
    58415841    if (RT_FAILURE(vrc))
     5842    {
     5843#ifdef RT_OS_WINDOWS
     5844        /* HACK: GUI sets *pfEnabled to 'true' and expects it to stay so if the API fails.
     5845         * This works with XPCOM. But Windows COM sets all output parameters to zero.
     5846         * So just assign fEnable to TRUE again.
     5847         * The right fix would be to change GUI API wrappers to make sure that parameters
     5848         * are changed only if API succeeds.
     5849         */
     5850        *pfEnabled = TRUE;
     5851#endif
    58425852        return setError(VBOX_E_IPRT_ERROR,
    58435853                        tr("Saved guest size is not available (%Rrc)"),
    58445854                        vrc);
     5855    }
    58455856
    58465857    *puOriginX = u32OriginX;
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