VirtualBox

Changeset 6636 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 30, 2008 9:46:07 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27697
Message:

Fixed invered assertions in the two reservation request wrappers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r6624 r6636  
    10171017 *
    10181018 * @returns VBox status code.
    1019  * @retval  VERR_GMM_NOT_SUFFICENT_MEMORY
     1019 * @retval  VERR_GMM_MEMORY_RESERVATION_DECLINED
    10201020 * @retval  VERR_GMM_
    10211021 *
     
    11041104    AssertPtrReturn(pVM, VERR_INVALID_POINTER);
    11051105    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);
    11071107
    11081108    return GMMR0InitialReservation(pVM, pReq->cBasePages, pReq->cShadowPages, pReq->cFixedPages, pReq->enmPolicy, pReq->enmPriority);
     
    11141114 *
    11151115 * @returns VBox status code.
    1116  * @retval  VERR_GMM_NOT_SUFFICENT_MEMORY
     1116 * @retval  VERR_GMM_MEMORY_RESERVATION_DECLINED
    11171117 *
    11181118 * @param   pVM             Pointer to the shared VM structure.
     
    11941194    AssertPtrReturn(pVM, VERR_INVALID_POINTER);
    11951195    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);
    11971197
    11981198    return GMMR0UpdateReservation(pVM, pReq->cBasePages, pReq->cShadowPages, pReq->cFixedPages);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette