Changeset 64891 in vbox
- Timestamp:
- Dec 15, 2016 9:22:05 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/ldr.h
r62473 r64891 1014 1014 /** Import module by index (32-bit) stored in the buffer. */ 1015 1015 RTLDRPROP_IMPORT_MODULE, 1016 /** The file offset of the main executable header. 1017 * This is mainly for PE, NE and LX headers, but also Mach-O FAT. */ 1018 RTLDRPROP_FILE_OFF_HEADER, 1016 1019 1017 1020 /** End of valid properties. */ -
trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp
r62477 r64891 636 636 AssertReturn(cbBuf >= sizeof(uint32_t), VERR_INVALID_PARAMETER); 637 637 break; 638 case RTLDRPROP_FILE_OFF_HEADER: 639 *pcbRet = sizeof(uint64_t); 640 AssertReturn(cbBuf == sizeof(uint32_t) || cbBuf == sizeof(uint64_t), VERR_INVALID_PARAMETER); 641 break; 638 642 639 643 default: -
trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp
r64204 r64891 1960 1960 break; 1961 1961 1962 1963 1962 case RTLDRPROP_IMPORT_MODULE: 1964 1963 Assert(cbBuf >= sizeof(uint32_t)); 1965 1964 return rtLdrPE_QueryImportModule(pModPe, pvBits, *(uint32_t *)pvBuf, pvBuf, cbBuf, pcbRet); 1965 1966 case RTLDRPROP_FILE_OFF_HEADER: 1967 Assert(cbBuf == sizeof(uint32_t) || cbBuf == sizeof(uint64_t)); 1968 if (cbBuf == sizeof(uint32_t)) 1969 *(uint32_t *)pvBuf = pModPe->offNtHdrs; 1970 else 1971 *(uint64_t *)pvBuf = pModPe->offNtHdrs; 1972 return VINF_SUCCESS; 1966 1973 1967 1974 default:
Note:
See TracChangeset
for help on using the changeset viewer.