VirtualBox

Changeset 51794 in vbox for trunk/src


Ignore:
Timestamp:
Jul 1, 2014 11:40:38 PM (11 years ago)
Author:
vboxsync
Message:

Darwin loader rc fix (VERR_INVALID_EXE_SIGNATURE).

File:
1 edited

Legend:

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

    r51770 r51794  
    177177    {
    178178        int rc2 = rtldrkLdrOpen(pReader, fFlags, enmArch, phMod, pErrInfo);
    179         if (rc2 == VERR_MZ_EXE_NOT_SUPPORTED) /* Quick fix for bad return code. */
    180             rc = rc;
     179        if (   RT_SUCCESS(rc2)
     180            || (rc == VERR_INVALID_EXE_SIGNATURE && rc2 != VERR_MZ_EXE_NOT_SUPPORTED /* Quick fix for bad return code. */)
     181            || rc2 >  VERR_INVALID_EXE_SIGNATURE
     182            || rc2 <= VERR_BAD_EXE_FORMAT)
     183            rc = rc2;
    181184    }
    182185#endif
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