VirtualBox

Ignore:
Timestamp:
Sep 10, 2015 10:25:41 AM (9 years ago)
Author:
vboxsync
Message:

VMM: check the return code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp

    r57358 r57684  
    684684                else
    685685                    rc = MMR3HeapAllocZEx(pVM, MM_TAG_PDM_DRIVER, cb, (void **)&pNew);
    686                 if (pNew)
     686                if (RT_SUCCESS(rc))
    687687                {
    688688                    /*
     
    775775                }
    776776                else
    777                 {
    778                     AssertMsgFailed(("Failed to allocate %d bytes for instantiating driver '%s'\n", cb, pszName));
    779                     rc = VERR_NO_MEMORY;
    780                 }
     777                    AssertMsgFailed(("Failed to allocate %d bytes for instantiating driver '%s'! rc=%Rrc\n", cb, pszName, rc));
    781778            }
    782779            else
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