Changeset 90794 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Aug 23, 2021 1:16:11 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146429
- Location:
- trunk/src/VBox/Additions/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp
r82968 r90794 88 88 static char szValue[] = "Value"; 89 89 static char szFlags[] = "TRANSIENT"; 90 if ( VALID_PTR(ppszValue))90 if (ppszValue) 91 91 *ppszValue = szValue; 92 if ( VALID_PTR(pu64Timestamp))92 if (pu64Timestamp) 93 93 *pu64Timestamp = 12345; 94 if ( VALID_PTR(ppszFlags))94 if (ppszFlags) 95 95 *ppszFlags = szFlags; 96 if ( VALID_PTR(pcbBufActual))96 if (pcbBufActual) 97 97 *pcbBufActual = 256; 98 98 return VINF_SUCCESS; … … 129 129 static char szFlags[] = "TRANSIENT"; 130 130 *ppHandle = &Handle; 131 if ( VALID_PTR(ppszName))131 if (ppszName) 132 132 *ppszName = szName; 133 if ( VALID_PTR(ppszValue))133 if (ppszValue) 134 134 *ppszValue = szValue; 135 if ( VALID_PTR(pu64Timestamp))135 if (pu64Timestamp) 136 136 *pu64Timestamp = 12345; 137 if ( VALID_PTR(ppszFlags))137 if (ppszFlags) 138 138 *ppszFlags = szFlags; 139 139 return VINF_SUCCESS; … … 148 148 RT_NOREF1(pHandle); 149 149 RTPrintf("Called enumerate next...\n"); 150 AssertReturn( VALID_PTR(ppszName) || VALID_PTR(ppszValue) ||VALID_PTR(ppszFlags),150 AssertReturn(RT_VALID_PTR(ppszName) || RT_VALID_PTR(ppszValue) || RT_VALID_PTR(ppszFlags), 151 151 VERR_INVALID_POINTER); 152 if ( VALID_PTR(ppszName))152 if (ppszName) 153 153 *ppszName = NULL; 154 if ( VALID_PTR(ppszValue))154 if (ppszValue) 155 155 *ppszValue = NULL; 156 if ( VALID_PTR(pu64Timestamp))156 if (pu64Timestamp) 157 157 *pu64Timestamp = 0; 158 if ( VALID_PTR(ppszFlags))158 if (ppszFlags) 159 159 *ppszFlags = NULL; 160 160 return VINF_SUCCESS; … … 191 191 static char szValue[] = "Value"; 192 192 static char szFlags[] = "TRANSIENT"; 193 if ( VALID_PTR(ppszName))193 if (ppszName) 194 194 *ppszName = szName; 195 if ( VALID_PTR(ppszValue))195 if (ppszValue) 196 196 *ppszValue = szValue; 197 if ( VALID_PTR(pu64Timestamp))197 if (pu64Timestamp) 198 198 *pu64Timestamp = 12345; 199 if ( VALID_PTR(ppszFlags))199 if (ppszFlags) 200 200 *ppszFlags = szFlags; 201 if ( VALID_PTR(pcbBufActual))201 if (pcbBufActual) 202 202 *pcbBufActual = 256; 203 203 return VINF_SUCCESS; -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxDev-haiku.c
r82968 r90794 162 162 * Close the session if it's still hanging on to the device... 163 163 */ 164 if ( VALID_PTR(pSession))164 if (RT_VALID_PTR(pSession)) 165 165 { 166 166 VGDrvCommonCloseSession(&g_DevExt, pSession); … … 191 191 * Validate the input. 192 192 */ 193 if (RT_UNLIKELY(! VALID_PTR(pSession)))193 if (RT_UNLIKELY(!RT_VALID_PTR(pSession))) 194 194 return EINVAL; 195 195 … … 233 233 return EFAULT; 234 234 } 235 if (RT_UNLIKELY(! VALID_PTR(pvBuf)))235 if (RT_UNLIKELY(!RT_VALID_PTR(pvBuf))) 236 236 { 237 237 RTMemTmpFree(pvBuf); -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-freebsd.c
r82968 r90794 289 289 * Close the session if it's still hanging on to the device... 290 290 */ 291 if ( VALID_PTR(pSession))291 if (RT_VALID_PTR(pSession)) 292 292 { 293 293 VGDrvCommonCloseSession(&g_DevExt, pSession); … … 518 518 519 519 PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)pDev->si_drv1; 520 if (RT_UNLIKELY(! VALID_PTR(pSession))) {520 if (RT_UNLIKELY(!RT_VALID_PTR(pSession))) { 521 521 Log(("vgdrvFreeBSDPoll: no state data for %s\n", devtoname(pDev))); 522 522 return (fEvents & (POLLHUP|POLLIN|POLLRDNORM|POLLOUT|POLLWRNORM));
Note:
See TracChangeset
for help on using the changeset viewer.