VirtualBox

Changeset 68803 in vbox


Ignore:
Timestamp:
Sep 20, 2017 1:06:54 PM (7 years ago)
Author:
vboxsync
Message:

Build fix.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r68802 r68803  
    24202420     * Get parameters from API.
    24212421     */
    2422     SafeArray<BOOL> aScreens;
     2422    com::SafeArray<BOOL> aScreens;
    24232423    HRESULT rc = pMachine->COMGETTER(VideoCaptureScreens)(ComSafeArrayAsOutParam(aScreens));
    24242424    AssertComRCReturn(rc, VERR_COM_UNEXPECTED);
    2425     aScreens.cloneTo(mVideoRecCfg.aScreens);
     2425
     2426    mVideoRecCfg.aScreens.resize(aScreens.size());
     2427    for (size_t i = 0; i < aScreens.size(); ++i)
     2428        mVideoRecCfg.aScreens[i] = aScreens[i];
    24262429
    24272430    rc = pMachine->COMGETTER(VideoCaptureWidth)((ULONG *)&mVideoRecCfg.Video.uWidth);
  • trunk/src/VBox/Main/src-client/VideoRec.h

    r68798 r68803  
    5959    /** Whether recording is enabled or not (as a whole). */
    6060    bool                    fEnabled;
    61     /** */
     61    /** Array of all screens containing whether they're enabled
     62     *  for recording or not.  */
    6263    com::SafeArray<BOOL>    aScreens;
    6364    /** Destination where to write the stream to. */
     
    121122    {
    122123        fEnabled = that.fEnabled;
    123         that.aScreens.cloneTo(aScreens);
     124
     125        aScreens.resize(that.aScreens.size());
     126        for (size_t i = 0; i < that.aScreens.size(); ++i)
     127            aScreens[i] = that.aScreens[i];
     128
    124129        enmDst   = that.enmDst;
    125130
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