VirtualBox

Changeset 90789 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Aug 23, 2021 10:27:29 AM (3 years ago)
Author:
vboxsync
Message:

IPRT: More VALID_PTR -> RT_VALID_PTR/AssertPtr.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/dir.h

    r85121 r90789  
    162162DECLINLINE(bool) rtDirValidHandle(PRTDIRINTERNAL pDir)
    163163{
    164     AssertMsgReturn(VALID_PTR(pDir), ("%p\n", pDir), false);
     164    AssertPtrReturn(pDir, false);
    165165    AssertMsgReturn(pDir->u32Magic == RTDIR_MAGIC, ("%#RX32\n", pDir->u32Magic), false);
    166166    return true;
  • trunk/src/VBox/Runtime/include/internal/ldr.h

    r86524 r90789  
    576576DECLINLINE(bool) rtldrIsValid(RTLDRMOD hLdrMod)
    577577{
    578     return VALID_PTR(hLdrMod)
     578    return RT_VALID_PTR(hLdrMod)
    579579        && ((PRTLDRMODINTERNAL)hLdrMod)->u32Magic == RTLDRMOD_MAGIC;
    580580}
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