summaryrefslogtreecommitdiff
path: root/Nt32Pkg/Sec
diff options
context:
space:
mode:
Diffstat (limited to 'Nt32Pkg/Sec')
-rw-r--r--Nt32Pkg/Sec/SecMain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Nt32Pkg/Sec/SecMain.c b/Nt32Pkg/Sec/SecMain.c
index ce00812936..9048578ef7 100644
--- a/Nt32Pkg/Sec/SecMain.c
+++ b/Nt32Pkg/Sec/SecMain.c
@@ -362,7 +362,7 @@ Returns:
//
NtFileHandle = CreateFile (
FileName,
- GENERIC_READ | GENERIC_WRITE,
+ GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE,
FILE_SHARE_READ,
NULL,
CreationDisposition,
@@ -378,7 +378,7 @@ Returns:
NtMapHandle = CreateFileMapping (
NtFileHandle,
NULL,
- PAGE_READWRITE,
+ PAGE_EXECUTE_READWRITE,
0,
MapSize,
NULL
@@ -391,7 +391,7 @@ Returns:
//
VirtualAddress = MapViewOfFileEx (
NtMapHandle,
- FILE_MAP_ALL_ACCESS,
+ FILE_MAP_EXECUTE | FILE_MAP_ALL_ACCESS,
0,
0,
MapSize,