VirtualBox

Ignore:
Timestamp:
Aug 14, 2020 11:03:34 AM (4 years ago)
Author:
vboxsync
Message:

Shared Clipboard: Some more assertions for ShClBackendReadData() implementations.

Location:
trunk/src/VBox/HostServices/SharedClipboard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-darwin.cpp

    r84142 r85763  
    247247                        void *pvData, uint32_t cbData, uint32_t *pcbActual)
    248248{
     249    AssertPtrReturn(pClient,   VERR_INVALID_POINTER);
     250    AssertPtrReturn(pCmdCtx,   VERR_INVALID_POINTER);
     251    AssertPtrReturn(pvData,    VERR_INVALID_POINTER);
     252    AssertPtrReturn(pcbActual, VERR_INVALID_POINTER);
     253
    249254    RT_NOREF(pCmdCtx);
    250255
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r85121 r85763  
    716716                        SHCLFORMAT uFormat, void *pvData, uint32_t cbData, uint32_t *pcbActual)
    717717{
    718     AssertPtrReturn(pClient,             VERR_INVALID_POINTER);
     718    AssertPtrReturn(pClient,   VERR_INVALID_POINTER);
     719    AssertPtrReturn(pCmdCtx,   VERR_INVALID_POINTER);
     720    AssertPtrReturn(pvData,    VERR_INVALID_POINTER);
     721    AssertPtrReturn(pcbActual, VERR_INVALID_POINTER);
     722
    719723    RT_NOREF(pCmdCtx);
    720     AssertPtrReturn(pvData,              VERR_INVALID_POINTER);
     724
    721725    AssertPtrReturn(pClient->State.pCtx, VERR_INVALID_POINTER);
    722726
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp

    r85762 r85763  
    176176                        PSHCLCLIENTCMDCTX pCmdCtx, SHCLFORMAT uFormat, void *pvData, uint32_t cbData, uint32_t *pcbActual)
    177177{
    178     AssertPtrReturn(pClient, VERR_INVALID_POINTER);
    179     AssertPtrReturn(pCmdCtx, VERR_INVALID_POINTER);
    180     AssertPtrReturn(pvData,  VERR_INVALID_POINTER);
     178    AssertPtrReturn(pClient,   VERR_INVALID_POINTER);
     179    AssertPtrReturn(pCmdCtx,   VERR_INVALID_POINTER);
     180    AssertPtrReturn(pvData,    VERR_INVALID_POINTER);
     181    AssertPtrReturn(pcbActual, VERR_INVALID_POINTER);
    181182
    182183    RT_NOREF(pCmdCtx);
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