Changeset 224 in dev for trunk/abdev/BasicCompiler32/MakePeHdr.cpp
- Timestamp:
- Jul 21, 2007, 4:46:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/MakePeHdr.cpp
r223 r224 146 146 ////////////////// 147 147 // データテーブル 148 compiler.Get NativeCode().GetDataTable().Init();148 compiler.GetDataTable().Init(); 149 149 if(bDebugCompile){ 150 compiler.Get NativeCode().GetDataTable().Add( (long)0x00000002 );150 compiler.GetDataTable().Add( (long)0x00000002 ); 151 151 } 152 152 … … 919 919 920 920 //データセクションのファイル上のサイズ 921 if(compiler.Get NativeCode().GetDataTable().GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetNativeCode().GetDataTable().GetSize()+(FILE_ALIGNMENT-compiler.GetNativeCode().GetDataTable().GetSize()%FILE_ALIGNMENT);922 else FileSize_DataSection=compiler.Get NativeCode().GetDataTable().GetSize();921 if(compiler.GetDataTable().GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetDataTable().GetSize()+(FILE_ALIGNMENT-compiler.GetDataTable().GetSize()%FILE_ALIGNMENT); 922 else FileSize_DataSection=compiler.GetDataTable().GetSize(); 923 923 if(FileSize_DataSection) bUse_DataSection=1; 924 924 else bUse_DataSection=0; … … 1638 1638 if(bUse_DataSection){ 1639 1639 //データ テーブル 1640 WriteFile(hFile,compiler.Get NativeCode().GetDataTable().GetPtr(),compiler.GetNativeCode().GetDataTable().GetSize(),(DWORD *)&i2,NULL);1640 WriteFile(hFile,compiler.GetDataTable().GetPtr(),compiler.GetDataTable().GetSize(),(DWORD *)&i2,NULL); 1641 1641 i+=i2; 1642 1642 }
Note:
See TracChangeset
for help on using the changeset viewer.