VirtualBox

Changeset 35152 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Dec 15, 2010 4:45:42 PM (14 years ago)
Author:
vboxsync
Message:

*: added fFlags parameter to SUPR3HardenedLdrLoadAppPriv(), SUPR3HardenedLdrLoad() and RTLdrLoadEx(). VBoxSVC: slurp in VBoxVMM because it is required by the extension packs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrNative.cpp

    r34959 r35152  
    9696RTDECL(int) RTLdrLoad(const char *pszFilename, PRTLDRMOD phLdrMod)
    9797{
    98     return RTLdrLoadEx(pszFilename, phLdrMod, NULL, 0);
     98    return RTLdrLoadEx(pszFilename, phLdrMod, 0 /*=fFlags*/, NULL, 0);
    9999}
    100100RT_EXPORT_SYMBOL(RTLdrLoad);
    101101
    102102
    103 RTDECL(int) RTLdrLoadEx(const char *pszFilename, PRTLDRMOD phLdrMod, char *pszError, size_t cbError)
    104 {
    105     LogFlow(("RTLdrLoadEx: pszFilename=%p:{%s} phLdrMod=%p pszError=%p cbError=%zu\n", pszFilename, pszFilename, phLdrMod, pszError, cbError));
     103RTDECL(int) RTLdrLoadEx(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, char *pszError, size_t cbError)
     104{
     105    LogFlow(("RTLdrLoadEx: pszFilename=%p:{%s} phLdrMod=%p fFlags=%08x pszError=%p cbError=%zu\n", pszFilename, pszFilename, phLdrMod, fFlags, pszError, cbError));
    106106
    107107    /*
     
    136136         * Attempt to open the module.
    137137         */
    138         rc = rtldrNativeLoad(pszFilename, &pMod->hNative, pszError, cbError);
     138        rc = rtldrNativeLoad(pszFilename, &pMod->hNative, fFlags, pszError, cbError);
    139139        if (RT_SUCCESS(rc))
    140140        {
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