Changeset 74654 in vbox for trunk/src/VBox/Runtime/common/ldr/ldrVfsFile.cpp
- Timestamp:
- Oct 7, 2018 1:00:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrVfsFile.cpp
r73097 r74654 278 278 PRTLDRMOD phLdrMod, uint32_t *poffError, PRTERRINFO pErrInfo) 279 279 { 280 #ifdef LDR_WITH_KLDR281 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 #else307 280 return RTLdrOpenVfsChain(pszFilename, fFlags, enmArch, phLdrMod, poffError, pErrInfo); 308 #endif309 281 } 310 282 RT_EXPORT_SYMBOL(RTLdrOpenVfsChainkLdr);
Note:
See TracChangeset
for help on using the changeset viewer.