Changeset 259 in dev for trunk/abdev/BasicCompiler32/MakePeHdr.cpp
- Timestamp:
- Aug 3, 2007, 3:24:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/MakePeHdr.cpp
r258 r259 554 554 vector<ObjectModule *> masterObjectModules; 555 555 masterObjectModules.push_back( &compiler.objectModule ); 556 //compiler.linker.Link( masterObjectModules );556 compiler.linker.Link( masterObjectModules ); 557 557 558 558 … … 704 704 705 705 if( pUserProc->GetName() == "DllMain" ){ 706 DllMain_EntryPoint=pUserProc-> GetBeginOpAddress();706 DllMain_EntryPoint=pUserProc->_beginOpAddressOld; 707 707 } 708 708 709 709 lpdwExportAddressTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportAddressTable,(ExportNum+1)*sizeof(DWORD)); 710 lpdwExportAddressTable[ExportNum]=pUserProc-> GetBeginOpAddress();710 lpdwExportAddressTable[ExportNum]=pUserProc->_beginOpAddressOld; 711 711 712 712 lpdwExportNamePointerTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportNamePointerTable,(ExportNum+1)*sizeof(DWORD)); … … 1177 1177 // プロシージャポインタスケジュール 1178 1178 for(i=0;i<pobj_SubAddrSchedule->num;i++){ 1179 if(pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()==01180 &&pobj_SubAddrSchedule->ppsi[i]-> GetEndOpAddress()==0){1179 if(pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld==0 1180 &&pobj_SubAddrSchedule->ppsi[i]->_endOpAddressOld==0){ 1181 1181 SetError(300,NULL,-1); 1182 1182 } … … 1184 1184 if(pobj_SubAddrSchedule->pbCall[i]){ 1185 1185 *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))= 1186 pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()-(pobj_SubAddrSchedule->pObpValues[i]+sizeof(long));1186 pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld-(pobj_SubAddrSchedule->pObpValues[i]+sizeof(long)); 1187 1187 } 1188 1188 else{ 1189 1189 *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))= 1190 pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()+ImageBase+MemPos_CodeSection;1190 pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld+ImageBase+MemPos_CodeSection; 1191 1191 } 1192 1192 }
Note:
See TracChangeset
for help on using the changeset viewer.