VirtualBox

Changeset 74253 in vbox


Ignore:
Timestamp:
Sep 13, 2018 5:22:06 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/ldr: Added RTLDRLOAD_FLAGS_NO_SUFFIX flag for enabling loading frameworks on darwin.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/ldr.h

    r73497 r74253  
    289289 *  supported on XP, W2K3 or earlier.  Ignored on other platforms. */
    290290#define RTLDRLOAD_FLAGS_NT_SEARCH_DLL_LOAD_DIR  RT_BIT_32(2)
     291/** Do not append default suffix.   */
     292#define RTLDRLOAD_FLAGS_NO_SUFFIX               RT_BIT_32(3)
    291293/** The mask of valid flag bits. */
    292 #define RTLDRLOAD_FLAGS_VALID_MASK              UINT32_C(0x00000007)
     294#define RTLDRLOAD_FLAGS_VALID_MASK              UINT32_C(0x0000000f)
    293295/** @} */
    294296
  • trunk/src/VBox/Runtime/r3/posix/ldrNative-posix.cpp

    r69111 r74253  
    4747     * Do we need to add an extension?
    4848     */
    49     if (!RTPathHasSuffix(pszFilename))
     49    if (!RTPathHasSuffix(pszFilename) && !(fFlags & RTLDRLOAD_FLAGS_NO_SUFFIX))
    5050    {
    5151#if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS)
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