Merge pull request #12138 from LipkeGu/FixHeader-LAA

FixHeader: Add support for "/LargeAddressAware"
This commit is contained in:
Oliver Brakmann
2016-10-09 13:06:17 +02:00
committed by GitHub

View File

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