diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-11 00:13:56 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-11 00:13:56 +0000 |
commit | 75e55c54be7f61757fcd85255f02ff36ae800a58 (patch) | |
tree | 2b06ddffa9ce51aab6e06f9f50a352dba88cbb0c /Nt32Pkg | |
parent | 7cb29684e4a0c5143138607666a304d0e653d065 (diff) | |
download | edk2-platforms-75e55c54be7f61757fcd85255f02ff36ae800a58.tar.xz |
Set EXECUTE flags in so RELEASE builds can tun correctly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11516 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg')
-rw-r--r-- | Nt32Pkg/Sec/SecMain.c | 6 |
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,
|