Changeset 79120 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
- Timestamp:
- Jun 13, 2019 10:08:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r79088 r79120 8462 8462 8463 8463 VBOXCLIPBOARDEXTPARMS *pParms = (VBOXCLIPBOARDEXTPARMS *)pvParms; 8464 AssertPtr (pParms);8464 AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER); 8465 8465 8466 8466 /* The guest announces clipboard formats. This must be delivered to all clients. */ … … 8478 8478 8479 8479 VBOXCLIPBOARDEXTPARMS *pParms = (VBOXCLIPBOARDEXTPARMS *)pvParms; 8480 AssertPtr (pParms);8480 AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER); 8481 8481 8482 8482 /* The clipboard service expects that the pvData buffer will be filled … … 8497 8497 8498 8498 VBOXCLIPBOARDEXTPARMS *pParms = (VBOXCLIPBOARDEXTPARMS *)pvParms; 8499 AssertPtr (pParms);8499 AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER); 8500 8500 8501 8501 if (pThis->mConsoleVRDPServer) … … 8515 8515 if (SUCCEEDED(hrc)) 8516 8516 { 8517 8518 AssertPtr(pParms);8519 8520 8521 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; 8522 8522 } 8523 8523 else … … 8529 8529 PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms; 8530 8530 AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER); 8531 8531 8532 hrc = pControl->ClipboardAreaUnregister(pParms->uID); 8532 8533 if (FAILED(hrc)) … … 8538 8539 PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms; 8539 8540 AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER); 8541 8540 8542 hrc = pControl->ClipboardAreaAttach(pParms->uID); 8541 8543 if (FAILED(hrc)) … … 8547 8549 PVBOXCLIPBOARDEXTAREAPARMS pParms = (PVBOXCLIPBOARDEXTAREAPARMS)pvParms; 8548 8550 AssertPtrBreakStmt(pParms, rc = VERR_INVALID_POINTER); 8551 8549 8552 hrc = pControl->ClipboardAreaDetach(pParms->uID); 8550 8553 if (FAILED(hrc)) … … 8561 8564 # ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 8562 8565 if (FAILED(hrc)) 8566 { 8567 LogRel(("Shared Clipboard: Area handling failed with %Rhrc\n", hrc)); 8563 8568 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 } 8570 8570 # endif 8571 8571
Note:
See TracChangeset
for help on using the changeset viewer.