vbox的更動 61936 路徑 trunk/src/VBox/Runtime
- 時間撮記:
- 2016-6-29 下午04:08:10 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp
r60715 r61936 528 528 PIMAGE_SECTION_HEADER pSH = pModPe->paSections; 529 529 for (unsigned cLeft = pModPe->cSections; cLeft > 0; cLeft--, pSH++) 530 if (pSH->SizeOfRawData && pSH->Misc.VirtualSize) 531 { 532 rc = pReader->pfnRead(pReader, (uint8_t *)pvBits + pSH->VirtualAddress, pSH->SizeOfRawData, pSH->PointerToRawData); 530 if ( pSH->SizeOfRawData 531 && pSH->Misc.VirtualSize 532 && !(pSH->Characteristics & IMAGE_SCN_TYPE_NOLOAD)) 533 { 534 uint32_t const cbToRead = RT_MIN(pSH->SizeOfRawData, pModPe->cbImage - pSH->VirtualAddress); 535 Assert(pSH->VirtualAddress <= pModPe->cbImage); 536 537 rc = pReader->pfnRead(pReader, (uint8_t *)pvBits + pSH->VirtualAddress, cbToRead, pSH->PointerToRawData); 533 538 if (RT_FAILURE(rc)) 534 539 { … … 1653 1658 else 1654 1659 { 1655 SegInfo.LinkAddress = pSh->VirtualAddress + pModPe->uImageBase 1660 SegInfo.LinkAddress = pSh->VirtualAddress + pModPe->uImageBase; 1656 1661 SegInfo.RVA = pSh->VirtualAddress; 1657 1662 SegInfo.cbMapped = RT_ALIGN(SegInfo.cb, SegInfo.Alignment);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器