VirtualBox

Ignore:
Timestamp:
Jun 13, 2019 10:08:33 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Update.

File:
1 edited

Legend:

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

    r79088 r79120  
    84628462
    84638463            VBOXCLIPBOARDEXTPARMS *pParms = (VBOXCLIPBOARDEXTPARMS *)pvParms;
    8464             AssertPtr(pParms);
     8464            AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER);
    84658465
    84668466            /* The guest announces clipboard formats. This must be delivered to all clients. */
     
    84788478
    84798479            VBOXCLIPBOARDEXTPARMS *pParms = (VBOXCLIPBOARDEXTPARMS *)pvParms;
    8480             AssertPtr(pParms);
     8480            AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER);
    84818481
    84828482            /* The clipboard service expects that the pvData buffer will be filled
     
    84978497
    84988498            VBOXCLIPBOARDEXTPARMS *pParms = (VBOXCLIPBOARDEXTPARMS *)pvParms;
    8499             AssertPtr(pParms);
     8499            AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER);
    85008500
    85018501            if (pThis->mConsoleVRDPServer)
     
    85158515            if (SUCCEEDED(hrc))
    85168516            {
    8517                  PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms;
    8518                  AssertPtr(pParms);
    8519 
    8520                  /* Return the registered area ID back to the caller. */
    8521                  pParms->uID = uID;
     8517                PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms;
     8518                AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER);
     8519
     8520                /* Return the registered area ID back to the caller. */
     8521                pParms->uID = uID;
    85228522            }
    85238523            else
     
    85298529            PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms;
    85308530            AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER);
     8531
    85318532            hrc = pControl->ClipboardAreaUnregister(pParms->uID);
    85328533            if (FAILED(hrc))
     
    85388539            PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms;
    85398540            AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER);
     8541
    85408542            hrc = pControl->ClipboardAreaAttach(pParms->uID);
    85418543            if (FAILED(hrc))
     
    85478549            PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms;
    85488550            AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER);
     8551
    85498552            hrc = pControl->ClipboardAreaDetach(pParms->uID);
    85508553            if (FAILED(hrc))
     
    85618564# ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST
    85628565    if (FAILED(hrc))
     8566    {
     8567        LogRel(("Shared Clipboard: Area handling failed with %Rhrc\n", hrc));
    85638568        rc = VERR_GENERAL_FAILURE; /** @todo Fudge; fix this. */
    8564 # endif
    8565 
    8566 # ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST_DISABLED
    8567     int rc2 = SharedClipboard::hostServiceCallback(SHAREDCLIPBOARDINST(), u32Function, pvParms, cbParms);
    8568     if (RT_SUCCESS(rc))
    8569         rc = rc2;
     8569    }
    85708570# endif
    85718571
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