diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2021-08-23 13:16:11 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2021-08-23 13:16:11 +0000 |
commit | c1c66b5e9e93e44e2225f43f699827e59bbb29ed (patch) | |
tree | 442c2e072d886a6b6e7693067cb084b728d06833 /src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp | |
parent | ed95c0eea563359dfa94021bec1f22b1473b5549 (diff) | |
download | VirtualBox-svn-c1c66b5e9e93e44e2225f43f699827e59bbb29ed.tar.gz |
*: More VALID_PTR -> RT_VALID_PTR/AssertPtr.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@90794 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp')
-rw-r--r-- | src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp b/src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp index 75a12d666b1..7b15312d4b7 100644 --- a/src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp +++ b/src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp @@ -87,13 +87,13 @@ VBGLR3DECL(int) VbglR3GuestPropRead(HGCMCLIENTID idClient, idClient, pszName); static char szValue[] = "Value"; static char szFlags[] = "TRANSIENT"; - if (VALID_PTR(ppszValue)) + if (ppszValue) *ppszValue = szValue; - if (VALID_PTR(pu64Timestamp)) + if (pu64Timestamp) *pu64Timestamp = 12345; - if (VALID_PTR(ppszFlags)) + if (ppszFlags) *ppszFlags = szFlags; - if (VALID_PTR(pcbBufActual)) + if (pcbBufActual) *pcbBufActual = 256; return VINF_SUCCESS; } @@ -128,13 +128,13 @@ VBGLR3DECL(int) VbglR3GuestPropEnum(HGCMCLIENTID idClient, static char szValue[] = "Value"; static char szFlags[] = "TRANSIENT"; *ppHandle = &Handle; - if (VALID_PTR(ppszName)) + if (ppszName) *ppszName = szName; - if (VALID_PTR(ppszValue)) + if (ppszValue) *ppszValue = szValue; - if (VALID_PTR(pu64Timestamp)) + if (pu64Timestamp) *pu64Timestamp = 12345; - if (VALID_PTR(ppszFlags)) + if (ppszFlags) *ppszFlags = szFlags; return VINF_SUCCESS; } @@ -147,15 +147,15 @@ VBGLR3DECL(int) VbglR3GuestPropEnumNext(PVBGLR3GUESTPROPENUM pHandle, { RT_NOREF1(pHandle); RTPrintf("Called enumerate next...\n"); - AssertReturn(VALID_PTR(ppszName) || VALID_PTR(ppszValue) || VALID_PTR(ppszFlags), + AssertReturn(RT_VALID_PTR(ppszName) || RT_VALID_PTR(ppszValue) || RT_VALID_PTR(ppszFlags), VERR_INVALID_POINTER); - if (VALID_PTR(ppszName)) + if (ppszName) *ppszName = NULL; - if (VALID_PTR(ppszValue)) + if (ppszValue) *ppszValue = NULL; - if (VALID_PTR(pu64Timestamp)) + if (pu64Timestamp) *pu64Timestamp = 0; - if (VALID_PTR(ppszFlags)) + if (ppszFlags) *ppszFlags = NULL; return VINF_SUCCESS; } @@ -190,15 +190,15 @@ VBGLR3DECL(int) VbglR3GuestPropWait(HGCMCLIENTID idClient, static char szName[] = "Name"; static char szValue[] = "Value"; static char szFlags[] = "TRANSIENT"; - if (VALID_PTR(ppszName)) + if (ppszName) *ppszName = szName; - if (VALID_PTR(ppszValue)) + if (ppszValue) *ppszValue = szValue; - if (VALID_PTR(pu64Timestamp)) + if (pu64Timestamp) *pu64Timestamp = 12345; - if (VALID_PTR(ppszFlags)) + if (ppszFlags) *ppszFlags = szFlags; - if (VALID_PTR(pcbBufActual)) + if (pcbBufActual) *pcbBufActual = 256; return VINF_SUCCESS; } |