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/BasicCompiler64/MakePeHdr.cpp

    r257 r259  
    624624
    625625            if( pUserProc->GetName() == "DllMain" ){
    626                 DllMain_EntryPoint=pUserProc->GetBeginOpAddress();
     626                DllMain_EntryPoint=pUserProc->_beginOpAddressOld;
    627627            }
    628628
    629629            lpdwExportAddressTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportAddressTable,(ExportNum+1)*sizeof(DWORD));
    630             lpdwExportAddressTable[ExportNum]=pUserProc->GetBeginOpAddress();
     630            lpdwExportAddressTable[ExportNum]=pUserProc->_beginOpAddressOld;
    631631
    632632            lpdwExportNamePointerTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportNamePointerTable,(ExportNum+1)*sizeof(DWORD));
     
    11251125    // プロシージャポインタスケジュール
    11261126    for(i=0;i<pobj_SubAddrSchedule->num;i++){
    1127         if(pobj_SubAddrSchedule->ppsi[i]->GetBeginOpAddress()==0
    1128             &&pobj_SubAddrSchedule->ppsi[i]->GetEndOpAddress()==0){
     1127        if(pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld==0
     1128            &&pobj_SubAddrSchedule->ppsi[i]->_endOpAddressOld==0){
    11291129            SetError(300,NULL,-1);
    11301130        }
     
    11321132        if(pobj_SubAddrSchedule->pbCall[i]){
    11331133            *((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));
    11351135        }
    11361136        else{
    11371137            *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))=
    1138                 pobj_SubAddrSchedule->ppsi[i]->GetBeginOpAddress()+ImageBase+MemPos_CodeSection;
     1138                pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld+ImageBase+MemPos_CodeSection;
    11391139        }
    11401140    }
Note: See TracChangeset for help on using the changeset viewer.