Ignore:
Timestamp:
Aug 3, 2007, 3:24:22 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler32/MakePeHdr.cpp

    r258 r259  
    554554    vector<ObjectModule *> masterObjectModules;
    555555    masterObjectModules.push_back( &compiler.objectModule );
    556     //compiler.linker.Link( masterObjectModules );
     556    compiler.linker.Link( masterObjectModules );
    557557
    558558
     
    704704
    705705            if( pUserProc->GetName() == "DllMain" ){
    706                 DllMain_EntryPoint=pUserProc->GetBeginOpAddress();
     706                DllMain_EntryPoint=pUserProc->_beginOpAddressOld;
    707707            }
    708708
    709709            lpdwExportAddressTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportAddressTable,(ExportNum+1)*sizeof(DWORD));
    710             lpdwExportAddressTable[ExportNum]=pUserProc->GetBeginOpAddress();
     710            lpdwExportAddressTable[ExportNum]=pUserProc->_beginOpAddressOld;
    711711
    712712            lpdwExportNamePointerTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportNamePointerTable,(ExportNum+1)*sizeof(DWORD));
     
    11771177    // プロシージャポインタスケジュール
    11781178    for(i=0;i<pobj_SubAddrSchedule->num;i++){
    1179         if(pobj_SubAddrSchedule->ppsi[i]->GetBeginOpAddress()==0
    1180             &&pobj_SubAddrSchedule->ppsi[i]->GetEndOpAddress()==0){
     1179        if(pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld==0
     1180            &&pobj_SubAddrSchedule->ppsi[i]->_endOpAddressOld==0){
    11811181            SetError(300,NULL,-1);
    11821182        }
     
    11841184        if(pobj_SubAddrSchedule->pbCall[i]){
    11851185            *((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));
    11871187        }
    11881188        else{
    11891189            *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))=
    1190                 pobj_SubAddrSchedule->ppsi[i]->GetBeginOpAddress()+ImageBase+MemPos_CodeSection;
     1190                pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld+ImageBase+MemPos_CodeSection;
    11911191        }
    11921192    }
Note: See TracChangeset for help on using the changeset viewer.