FixHeader: Add support for "/LargeAddressAware"

This commit is contained in:
Guido L
2016-10-01 01:25:23 +02:00
parent 678f9563f6
commit 86ac94bf32

View File

@@ -29,6 +29,9 @@ namespace fixheader
data[corHeaderOffset + 16] |= 2; data[corHeaderOffset + 16] |= 2;
// Set Flag "Application can handle large (>2GB) addresses (/LARGEADDRESSAWARE)"
data[peOffset + 4 + 18] |= 0x20;
File.WriteAllBytes(args[0], data); File.WriteAllBytes(args[0], data);
} }