From 86ac94bf320416864896bdb165a1eae5cb965161 Mon Sep 17 00:00:00 2001 From: Guido L Date: Sat, 1 Oct 2016 01:25:23 +0200 Subject: [PATCH] FixHeader: Add support for "/LargeAddressAware" --- packaging/fixheader.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/fixheader.cs b/packaging/fixheader.cs index ff643a199c..f4ef634390 100644 --- a/packaging/fixheader.cs +++ b/packaging/fixheader.cs @@ -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); }