VirtualBox

Changeset 78900 in vbox


Ignore:
Timestamp:
May 31, 2019 3:46:15 PM (6 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Build fix.

File:
1 edited

Legend:

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

    r78899 r78900  
    53735373            || mMachineState == MachineState_Teleporting
    53745374            || mMachineState == MachineState_LiveSnapshotting)
    5375             i_changeClipboardMode(aClipboardMode);
     5375        {
     5376            int vrc = i_changeClipboardMode(aClipboardMode);
     5377            if (RT_FAILURE(vrc))
     5378                rc = E_FAIL; /** @todo r=andy Set error info here? */
     5379        }
    53765380        else
    53775381            rc = i_setInvalidMachineStateError();
     
    92579261int Console::i_changeClipboardMode(ClipboardMode_T aClipboardMode)
    92589262{
     9263#ifdef VBOX_WITH_SHARED_CLIPBOARD
    92599264    VMMDev *pVMMDev = m_pVMMDev;
    92609265    AssertPtrReturn(pVMMDev, VERR_INVALID_POINTER);
     
    92849289    }
    92859290
    9286     int rc = pVMMDev->hgcmHostCall("VBoxSharedClipboard", VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE, 1, &parm);
    9287     if (RT_FAILURE(rc))
    9288         LogRel(("Shared Clipboard: Error changing mode: %Rrc\n", rc));
    9289 
    9290     return rc;
     9291    int vrc = pVMMDev->hgcmHostCall("VBoxSharedClipboard", VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE, 1, &parm);
     9292    if (RT_FAILURE(vrc))
     9293        LogRel(("Shared Clipboard: Error changing mode: %Rrc\n", vrc));
     9294
     9295    return vrc;
     9296#else
     9297    return VERR_NOT_IMPLEMENTED;
     9298#endif
    92919299}
    92929300
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