Rework the makefile.

This commit is contained in:
Paul Chote
2010-11-22 13:10:59 +13:00
parent 6a28bcb49a
commit 8df1813afd
2 changed files with 150 additions and 110 deletions

View File

@@ -10,6 +10,7 @@ namespace fixheader
static void Main(string[] args)
{
Console.WriteLine("fixheader {0}", args[0]);
data = File.ReadAllBytes(args[0]);
peOffset = BitConverter.ToInt32(data, 0x3c);
var corHeaderRva = BitConverter.ToInt32(data, peOffset + 20 + 100 + 14 * 8);