VirtualBox

Changeset 1293 in vbox


Ignore:
Timestamp:
Mar 7, 2007 9:43:36 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19246
Message:

create a better error message if some module we need at runtime was not found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMLdr.cpp

    r1194 r1293  
    275275    }
    276276
     277    /* Something went wrong, most likely module not found. Don't consider other unlikely errors */
    277278    RTMemFree(pModule);
    278     return rc;
     279    return VMSetError(pVM, rc, RT_SRC_POS, N_("Unable to load R3 module %s"), pszFilename);
    279280}
    280281
     
    492493    RTMemTmpFree(pszFile);
    493494
     495    /* don't consider VERR_PDM_MODULE_NAME_CLASH and VERR_NO_MEMORY as these are very unlikely */
     496    if (VBOX_FAILURE(rc))
     497        return VMSetError(pVM, rc, RT_SRC_POS, N_("Cannot load GC module %s"), pszFilename);
    494498    return rc;
    495499}
     
    575579    RTMemTmpFree(pszFile);
    576580    LogRel(("pdmR3LoadR0: pszName=\"%s\" rc=%Vrc\n", pszName, rc));
     581
     582    /* don't consider VERR_PDM_MODULE_NAME_CLASH and VERR_NO_MEMORY as these are very unlikely */
     583    if (VBOX_FAILURE(rc))
     584        return VMSetError(pVM, rc, RT_SRC_POS, N_("Cannot load R0 module %s"), pszFilename);
     585
    577586    return rc;
    578587}
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