VirtualBox

Changeset 29613 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
May 18, 2010 11:40:07 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61764
Message:

Pass back return code in the request packet to preserve informational codes. (VMMR3CallR0 chokes on them)

File:
1 edited

Legend:

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

    r29605 r29613  
    36213621    AssertMsgReturn(pReq->Hdr.cbReq >= sizeof(*pReq) && pReq->Hdr.cbReq == RT_UOFFSETOF(GMMREGISTERSHAREDMODULEREQ, aRegions[pReq->cRegions]), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);
    36223622
    3623     return GMMR0RegisterSharedModule(pVM, idCpu, pReq->enmGuestOS, pReq->szName, pReq->szVersion, pReq->GCBaseAddr, pReq->cbModule, pReq->cRegions, pReq->aRegions);
     3623    /* Pass back return code in the request packet to preserve informational codes. (VMMR3CallR0 chokes on them) */
     3624    pReq->rc = GMMR0RegisterSharedModule(pVM, idCpu, pReq->enmGuestOS, pReq->szName, pReq->szVersion, pReq->GCBaseAddr, pReq->cbModule, pReq->cRegions, pReq->aRegions);
     3625    return VINF_SUCCESS;
    36243626}
    36253627
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