VirtualBox

Ignore:
Timestamp:
Jul 29, 2020 10:07:17 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139572
Message:

SUP: Added a PRTERRINFO parameter to SUPR3LoadVMM. bugref:9801

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLibLdr.cpp

    r85121 r85506  
    683683
    684684
    685 SUPR3DECL(int) SUPR3LoadVMM(const char *pszFilename)
     685SUPR3DECL(int) SUPR3LoadVMM(const char *pszFilename, PRTERRINFO pErrInfo)
    686686{
    687687    void *pvImageBase;
    688     return SUPR3LoadModule(pszFilename, "VMMR0.r0", &pvImageBase, NULL /*pErrInfo*/);
     688    return SUPR3LoadModule(pszFilename, "VMMR0.r0", &pvImageBase, pErrInfo);
    689689}
    690690
  • trunk/src/VBox/HostDrivers/Support/testcase/tstInt.cpp

    r82968 r85506  
    7777         * Load VMM code.
    7878         */
    79         rc = SUPR3LoadVMM(szAbsFile);
     79        RTERRINFOSTATIC ErrInfo;
     80        rc = SUPR3LoadVMM(szAbsFile, RTErrInfoInitStatic(&ErrInfo));
    8081        if (RT_SUCCESS(rc))
    8182        {
     
    209210        else
    210211        {
    211             RTPrintf("tstInt: SUPR3LoadVMM failed with rc=%Rrc\n", rc);
     212            RTPrintf("tstInt: SUPR3LoadVMM failed with rc=%Rrc%#RTeim\n", rc, &ErrInfo.Core);
    212213            rcRet++;
    213214        }
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