Changeset 6636 in vbox for trunk/src/VBox
- Timestamp:
- Jan 30, 2008 9:46:07 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27697
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r6624 r6636 1017 1017 * 1018 1018 * @returns VBox status code. 1019 * @retval VERR_GMM_ NOT_SUFFICENT_MEMORY1019 * @retval VERR_GMM_MEMORY_RESERVATION_DECLINED 1020 1020 * @retval VERR_GMM_ 1021 1021 * … … 1104 1104 AssertPtrReturn(pVM, VERR_INVALID_POINTER); 1105 1105 AssertPtrReturn(pReq, VERR_INVALID_POINTER); 1106 AssertMsgReturn(pReq->Hdr.cbReq != sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);1106 AssertMsgReturn(pReq->Hdr.cbReq == sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER); 1107 1107 1108 1108 return GMMR0InitialReservation(pVM, pReq->cBasePages, pReq->cShadowPages, pReq->cFixedPages, pReq->enmPolicy, pReq->enmPriority); … … 1114 1114 * 1115 1115 * @returns VBox status code. 1116 * @retval VERR_GMM_ NOT_SUFFICENT_MEMORY1116 * @retval VERR_GMM_MEMORY_RESERVATION_DECLINED 1117 1117 * 1118 1118 * @param pVM Pointer to the shared VM structure. … … 1194 1194 AssertPtrReturn(pVM, VERR_INVALID_POINTER); 1195 1195 AssertPtrReturn(pReq, VERR_INVALID_POINTER); 1196 AssertMsgReturn(pReq->Hdr.cbReq != sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);1196 AssertMsgReturn(pReq->Hdr.cbReq == sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER); 1197 1197 1198 1198 return GMMR0UpdateReservation(pVM, pReq->cBasePages, pReq->cShadowPages, pReq->cFixedPages);
Note:
See TracChangeset
for help on using the changeset viewer.