Changeset 90781 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Aug 23, 2021 9:26:08 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146416
- Location:
- trunk/src/VBox/Runtime/r3/posix
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
r82968 r90781 522 522 if (!rtDirValidHandle(pDir)) 523 523 return VERR_INVALID_PARAMETER; 524 Assert MsgReturn(VALID_PTR(pDirEntry), ("%p\n", pDirEntry), VERR_INVALID_POINTER);524 AssertPtrReturn(pDirEntry, VERR_INVALID_POINTER); 525 525 526 526 size_t cbDirEntry = sizeof(*pDirEntry); 527 527 if (pcbDirEntry) 528 528 { 529 Assert MsgReturn(VALID_PTR(pcbDirEntry), ("%p\n", pcbDirEntry), VERR_INVALID_POINTER);529 AssertPtrReturn(pcbDirEntry, VERR_INVALID_POINTER); 530 530 cbDirEntry = *pcbDirEntry; 531 531 AssertMsgReturn(cbDirEntry >= RT_UOFFSETOF(RTDIRENTRY, szName[2]), … … 622 622 if (!rtDirValidHandle(pDir)) 623 623 return VERR_INVALID_PARAMETER; 624 Assert MsgReturn(VALID_PTR(pDirEntry), ("%p\n", pDirEntry), VERR_INVALID_POINTER);624 AssertPtrReturn(pDirEntry, VERR_INVALID_POINTER); 625 625 AssertMsgReturn( enmAdditionalAttribs >= RTFSOBJATTRADD_NOTHING 626 626 && enmAdditionalAttribs <= RTFSOBJATTRADD_LAST, … … 631 631 if (pcbDirEntry) 632 632 { 633 Assert MsgReturn(VALID_PTR(pcbDirEntry), ("%p\n", pcbDirEntry), VERR_INVALID_POINTER);633 AssertPtrReturn(pcbDirEntry, VERR_INVALID_POINTER); 634 634 cbDirEntry = *pcbDirEntry; 635 635 AssertMsgReturn(cbDirEntry >= RT_UOFFSETOF(RTDIRENTRYEX, szName[2]), … … 723 723 * Validate input. 724 724 */ 725 Assert MsgReturn(VALID_PTR(pszSrc), ("%p\n", pszSrc), VERR_INVALID_POINTER);726 Assert MsgReturn(VALID_PTR(pszDst), ("%p\n", pszDst), VERR_INVALID_POINTER);725 AssertPtrReturn(pszSrc, VERR_INVALID_POINTER); 726 AssertPtrReturn(pszDst, VERR_INVALID_POINTER); 727 727 AssertMsgReturn(*pszSrc, ("%p\n", pszSrc), VERR_INVALID_PARAMETER); 728 728 AssertMsgReturn(*pszDst, ("%p\n", pszDst), VERR_INVALID_PARAMETER); -
trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
r86302 r90781 888 888 * Validate input. 889 889 */ 890 Assert MsgReturn(VALID_PTR(pszSrc), ("%p\n", pszSrc), VERR_INVALID_POINTER);891 Assert MsgReturn(VALID_PTR(pszDst), ("%p\n", pszDst), VERR_INVALID_POINTER);890 AssertPtrReturn(pszSrc, VERR_INVALID_POINTER); 891 AssertPtrReturn(pszDst, VERR_INVALID_POINTER); 892 892 AssertMsgReturn(*pszSrc, ("%p\n", pszSrc), VERR_INVALID_PARAMETER); 893 893 AssertMsgReturn(*pszDst, ("%p\n", pszDst), VERR_INVALID_PARAMETER); -
trunk/src/VBox/Runtime/r3/posix/path-posix.cpp
r82968 r90781 285 285 * Validate input. 286 286 */ 287 Assert MsgReturn(VALID_PTR(pszSrc), ("%p\n", pszSrc), VERR_INVALID_POINTER);288 Assert MsgReturn(VALID_PTR(pszDst), ("%p\n", pszDst), VERR_INVALID_POINTER);287 AssertPtrReturn(pszSrc, VERR_INVALID_POINTER); 288 AssertPtrReturn(pszDst, VERR_INVALID_POINTER); 289 289 AssertMsgReturn(*pszSrc, ("%p\n", pszSrc), VERR_INVALID_PARAMETER); 290 290 AssertMsgReturn(*pszDst, ("%p\n", pszDst), VERR_INVALID_PARAMETER);
Note:
See TracChangeset
for help on using the changeset viewer.