Changeset 259 in dev for trunk/abdev/BasicCompiler64/MakePeHdr.cpp
- Timestamp:
- Aug 3, 2007, 3:24:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/MakePeHdr.cpp
r257 r259 624 624 625 625 if( pUserProc->GetName() == "DllMain" ){ 626 DllMain_EntryPoint=pUserProc-> GetBeginOpAddress();626 DllMain_EntryPoint=pUserProc->_beginOpAddressOld; 627 627 } 628 628 629 629 lpdwExportAddressTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportAddressTable,(ExportNum+1)*sizeof(DWORD)); 630 lpdwExportAddressTable[ExportNum]=pUserProc-> GetBeginOpAddress();630 lpdwExportAddressTable[ExportNum]=pUserProc->_beginOpAddressOld; 631 631 632 632 lpdwExportNamePointerTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportNamePointerTable,(ExportNum+1)*sizeof(DWORD)); … … 1125 1125 // プロシージャポインタスケジュール 1126 1126 for(i=0;i<pobj_SubAddrSchedule->num;i++){ 1127 if(pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()==01128 &&pobj_SubAddrSchedule->ppsi[i]-> GetEndOpAddress()==0){1127 if(pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld==0 1128 &&pobj_SubAddrSchedule->ppsi[i]->_endOpAddressOld==0){ 1129 1129 SetError(300,NULL,-1); 1130 1130 } … … 1132 1132 if(pobj_SubAddrSchedule->pbCall[i]){ 1133 1133 *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))= 1134 pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()-(pobj_SubAddrSchedule->pObpValues[i]+sizeof(long));1134 pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld-(pobj_SubAddrSchedule->pObpValues[i]+sizeof(long)); 1135 1135 } 1136 1136 else{ 1137 1137 *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))= 1138 pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()+ImageBase+MemPos_CodeSection;1138 pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld+ImageBase+MemPos_CodeSection; 1139 1139 } 1140 1140 }
Note:
See TracChangeset
for help on using the changeset viewer.