VirtualBox

Changeset 90805 in vbox


Ignore:
Timestamp:
Aug 23, 2021 7:09:17 PM (3 years ago)
Author:
vboxsync
Message:

HostServices: More VALID_PTR -> RT_VALID_PTR/AssertPtr.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/VBoxGuestControlSvc.cpp

    r90267 r90805  
    946946GstCtrlService::svcUnload(void *pvService)
    947947{
    948     AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER);
     948    AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER);
    949949    SELF *pThis = reinterpret_cast<SELF *>(pvService);
    950950    AssertPtrReturn(pThis, VERR_INVALID_POINTER);
     
    967967
    968968    RT_NOREF(fRestoring, pvClient);
    969     AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER);
     969    AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER);
    970970    SELF *pThis = reinterpret_cast<SELF *>(pvService);
    971971    AssertPtrReturn(pThis, VERR_INVALID_POINTER);
     
    23832383GstCtrlService::svcHostCall(void *pvService, uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
    23842384{
    2385     AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER);
     2385    AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER);
    23862386    SELF *pThis = reinterpret_cast<SELF *>(pvService);
    23872387    AssertPtrReturn(pThis, VERR_INVALID_POINTER);
     
    24962496    LogFlowFunc(("pTable=%p\n", pTable));
    24972497
    2498     if (!VALID_PTR(pTable))
    2499     {
     2498    if (!RT_VALID_PTR(pTable))
    25002499        rc = VERR_INVALID_PARAMETER;
    2501     }
    25022500    else
    25032501    {
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp

    r90267 r90805  
    27032703    LogFlowFunc(("pTable=%p\n", pTable));
    27042704
    2705     if (!VALID_PTR(pTable))
     2705    if (!RT_VALID_PTR(pTable))
    27062706    {
    27072707        rc = VERR_INVALID_PARAMETER;
  • trunk/src/VBox/HostServices/SharedFolders/VBoxSharedFoldersSvc.cpp

    r90238 r90805  
    18281828    Log(("SharedFolders host service: VBoxHGCMSvcLoad: ptable = %p\n", ptable));
    18291829
    1830     if (!VALID_PTR(ptable))
     1830    if (!RT_VALID_PTR(ptable))
    18311831    {
    18321832        LogRelFunc(("SharedFolders host service: Bad value of ptable (%p)\n", ptable));
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