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
0e85fc66
Commit
0e85fc66
authored
Jan 24, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use PAGE_EXECUTE_READ protection for an image section.
parent
29b91206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
loader.c
dlls/ntdll/loader.c
+2
-2
No files found.
dlls/ntdll/loader.c
View file @
0e85fc66
...
...
@@ -1486,12 +1486,12 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file,
size
.
QuadPart
=
0
;
status
=
NtCreateSection
(
&
mapping
,
STANDARD_RIGHTS_REQUIRED
|
SECTION_QUERY
|
SECTION_MAP_READ
,
NULL
,
&
size
,
PAGE_
READONLY
,
SEC_IMAGE
,
file
);
NULL
,
&
size
,
PAGE_
EXECUTE_READ
,
SEC_IMAGE
,
file
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
module
=
NULL
;
status
=
NtMapViewOfSection
(
mapping
,
NtCurrentProcess
(),
&
module
,
0
,
0
,
&
size
,
&
len
,
ViewShare
,
0
,
PAGE_
READONLY
);
&
module
,
0
,
0
,
&
size
,
&
len
,
ViewShare
,
0
,
PAGE_
EXECUTE_READ
);
if
(
status
<
0
)
goto
done
;
/* create the MODREF */
...
...
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