Changeset 97742 in vbox for trunk/src/VBox/HostServices/common
- Timestamp:
- Dec 5, 2022 8:16:42 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154803
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/common/message.cpp
r96407 r97742 27 27 28 28 #include <VBox/HostServices/Service.h> 29 #include <VBox/VMMDev.h> /* For VMMDEV_MAX_HGCM_PARMS. */ 29 30 30 31 using namespace HGCM; … … 99 100 return VERR_INVALID_PARAMETER; 100 101 } 102 103 if (m_cParms == 0) /* Nothing to copy, take a shortcut. */ 104 return VINF_SUCCESS; 105 101 106 if (m_cParms > cParms) 102 107 { … … 268 273 int Message::initData(uint32_t uMsg, uint32_t cParms, VBOXHGCMSVCPARM aParms[]) RT_NOEXCEPT 269 274 { 270 /** @todo r=bird: There is a define for the max number of HGCM parameters, 271 * it's way smaller than 256, something like 61 IIRC. */ 272 AssertReturn(cParms < 256, VERR_INVALID_PARAMETER); 273 AssertPtrReturn(aParms, VERR_INVALID_PARAMETER); 275 AssertReturn(cParms < VMMDEV_MAX_HGCM_PARMS, VERR_INVALID_PARAMETER); 276 AssertReturn(cParms == 0 || aParms != NULL, VERR_INVALID_POINTER); 274 277 275 278 /* Cleanup any eventual old stuff. */
Note:
See TracChangeset
for help on using the changeset viewer.