VirtualBox

Changeset 29613 in vbox for trunk/src/VBox/VMM/GMM.cpp


Ignore:
Timestamp:
May 18, 2010 11:40:07 AM (15 years ago)
Author:
vboxsync
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/GMM.cpp

    r29424 r29613  
    385385    pReq->Hdr.u32Magic  = SUPVMMR0REQHDR_MAGIC;
    386386    pReq->Hdr.cbReq     = RT_OFFSETOF(GMMREGISTERSHAREDMODULEREQ, aRegions[pReq->cRegions]);
    387     return VMMR3CallR0(pVM, VMMR0_DO_GMM_REGISTER_SHARED_MODULE, 0, &pReq->Hdr);
     387    int rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_REGISTER_SHARED_MODULE, 0, &pReq->Hdr);
     388    if (rc == VINF_SUCCESS)
     389        rc = pReq->rc;
     390    return rc;
    388391}
    389392
Note: See TracChangeset for help on using the changeset viewer.

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