Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ca4c5718
Commit
ca4c5718
authored
Aug 18, 2009
by
Michael Karcher
Committed by
Alexandre Julliard
Aug 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add handing of MEM_EXECUTE_OPTION_PERMANENT.
parent
9476071f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
process.c
dlls/ntdll/process.c
+2
-0
exception.c
dlls/ntdll/tests/exception.c
+2
-2
No files found.
dlls/ntdll/process.c
View file @
ca4c5718
...
...
@@ -420,6 +420,8 @@ NTSTATUS WINAPI NtSetInformationProcess(
case
ProcessExecuteFlags
:
if
(
ProcessInformationLength
!=
sizeof
(
ULONG
))
return
STATUS_INVALID_PARAMETER
;
else
if
(
execute_flags
&
MEM_EXECUTE_OPTION_PERMANENT
)
return
STATUS_ACCESS_DENIED
;
else
{
BOOL
enable
;
...
...
dlls/ntdll/tests/exception.c
View file @
ca4c5718
...
...
@@ -1070,12 +1070,12 @@ static void test_dpe_exceptions(void)
/* Try to turn off DEP */
val
=
MEM_EXECUTE_OPTION_ENABLE
;
stat
=
pNtSetInformationProcess
(
GetCurrentProcess
(),
ProcessExecuteFlags
,
&
val
,
sizeof
val
);
todo_wine
ok
(
stat
==
STATUS_ACCESS_DENIED
,
"disabling DEP while permanent: status %08x
\n
"
,
stat
);
ok
(
stat
==
STATUS_ACCESS_DENIED
,
"disabling DEP while permanent: status %08x
\n
"
,
stat
);
/* Try to turn on DEP */
val
=
MEM_EXECUTE_OPTION_DISABLE
;
stat
=
pNtSetInformationProcess
(
GetCurrentProcess
(),
ProcessExecuteFlags
,
&
val
,
sizeof
val
);
todo_wine
ok
(
stat
==
STATUS_ACCESS_DENIED
,
"enabling DEP while permanent: status %08x
\n
"
,
stat
);
ok
(
stat
==
STATUS_ACCESS_DENIED
,
"enabling DEP while permanent: status %08x
\n
"
,
stat
);
}
#elif defined(__x86_64__)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment