VirtualBox

Ignore:
Timestamp:
Oct 7, 2018 1:00:04 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: More kStuff cleanup. bugref:9232

File:
1 edited

Legend:

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

    r73097 r74654  
    278278                                  PRTLDRMOD phLdrMod, uint32_t *poffError, PRTERRINFO pErrInfo)
    279279{
    280 #ifdef LDR_WITH_KLDR
    281     LogFlow(("RTLdrOpenVfsChainkLdr: pszFilename=%p:{%s} fFlags=%#x enmArch=%d phLdrMod=%p\n",
    282              pszFilename, pszFilename, fFlags, enmArch, phLdrMod));
    283     AssertMsgReturn(!(fFlags & ~RTLDR_O_VALID_MASK), ("%#x\n", fFlags), VERR_INVALID_PARAMETER);
    284 
    285     /*
    286      * Create file reader & invoke worker which identifies and calls the image interpreter.
    287      */
    288     PRTLDRREADER pReader;
    289     int rc = rtldrVfsFileCreate(pszFilename, &pReader, poffError, pErrInfo);
    290     if (RT_SUCCESS(rc))
    291     {
    292         if (poffError)
    293             *poffError = 0;
    294         rc = rtldrkLdrOpen(pReader, fFlags, enmArch, phLdrMod, pErrInfo);
    295         if (RT_SUCCESS(rc))
    296         {
    297             LogFlow(("RTLdrOpenkLdr: return %Rrc *phLdrMod=%p\n", rc, *phLdrMod));
    298             return rc;
    299         }
    300         pReader->pfnDestroy(pReader);
    301     }
    302     *phLdrMod = NIL_RTLDRMOD;
    303     LogFlow(("RTLdrOpenVfsChainkLdr: return %Rrc\n", rc));
    304     return rc;
    305 
    306 #else
    307280    return RTLdrOpenVfsChain(pszFilename, fFlags, enmArch, phLdrMod, poffError, pErrInfo);
    308 #endif
    309281}
    310282RT_EXPORT_SYMBOL(RTLdrOpenVfsChainkLdr);
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