Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
ce5fe931
Commit
ce5fe931
authored
Jul 21, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Jul 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Allow changes to DEP flags under Wow64.
parent
7527869f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
process.c
dlls/ntdll/unix/process.c
+10
-6
No files found.
dlls/ntdll/unix/process.c
View file @
ce5fe931
...
...
@@ -73,9 +73,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
process
);
static
ULONG
execute_flags
=
MEM_EXECUTE_OPTION_DISABLE
|
(
sizeof
(
void
*
)
>
sizeof
(
int
)
?
MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION
|
MEM_EXECUTE_OPTION_PERMANENT
:
0
);
static
ULONG
execute_flags
=
MEM_EXECUTE_OPTION_DISABLE
;
static
UINT
process_error_mode
;
...
...
@@ -1434,8 +1432,14 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
case
ProcessExecuteFlags
:
len
=
sizeof
(
ULONG
);
if
(
size
==
len
)
*
(
ULONG
*
)
info
=
execute_flags
;
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
if
(
size
!=
len
)
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
else
if
(
is_win64
&&
!
NtCurrentTeb
()
->
WowTebOffset
)
*
(
ULONG
*
)
info
=
MEM_EXECUTE_OPTION_DISABLE
|
MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION
|
MEM_EXECUTE_OPTION_PERMANENT
;
else
*
(
ULONG
*
)
info
=
execute_flags
;
break
;
case
ProcessPriorityClass
:
...
...
@@ -1560,7 +1564,7 @@ NTSTATUS WINAPI NtSetInformationProcess( HANDLE handle, PROCESSINFOCLASS class,
break
;
case
ProcessExecuteFlags
:
if
(
is_win64
||
size
!=
sizeof
(
ULONG
))
return
STATUS_INVALID_PARAMETER
;
if
(
(
is_win64
&&
!
NtCurrentTeb
()
->
WowTebOffset
)
||
size
!=
sizeof
(
ULONG
))
return
STATUS_INVALID_PARAMETER
;
if
(
execute_flags
&
MEM_EXECUTE_OPTION_PERMANENT
)
return
STATUS_ACCESS_DENIED
;
else
{
...
...
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