VirtualBox

Changeset 35191 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 16, 2010 3:25:20 PM (14 years ago)
Author:
vboxsync
Message:

Some cleanup. Pass RTLDRLOAD_FLAGS_LOCAL instead of 0, since it's defined.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

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

    r35183 r35191  
    9696RTDECL(int) RTLdrLoad(const char *pszFilename, PRTLDRMOD phLdrMod)
    9797{
    98     return RTLdrLoadEx(pszFilename, phLdrMod, 0 /*fFlags*/, NULL);
     98    return RTLdrLoadEx(pszFilename, phLdrMod, RTLDRLOAD_FLAGS_LOCAL, NULL);
    9999}
    100100RT_EXPORT_SYMBOL(RTLdrLoad);
     
    111111    AssertPtrReturn(pszFilename, VERR_INVALID_POINTER);
    112112    AssertPtrReturn(phLdrMod, VERR_INVALID_POINTER);
     113    AssertReturn(!(fFlags & ~RTLDRLOAD_FLAGS_VALID_MASK), VERR_INVALID_PARAMETER);
    113114
    114115    /*
  • trunk/src/VBox/Runtime/r3/posix/ldrNative-posix.cpp

    r35183 r35191  
    7070     */
    7171    int fFlagsNative = RTLD_NOW;
    72     if (fFlags & RTLDRFLAGS_GLOBAL)
     72    if (fFlags & RTLDRLOAD_FLAGS_GLOBAL)
    7373        fFlagsNative |= RTLD_GLOBAL;
    7474    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