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
16eac43c
Commit
16eac43c
authored
Oct 14, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move adding VPROT_READ for Solaris to the same place where it's done for FreeBSD.
parent
f7e46645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
virtual.c
dlls/ntdll/virtual.c
+4
-4
No files found.
dlls/ntdll/virtual.c
View file @
16eac43c
...
...
@@ -187,8 +187,8 @@ static int VIRTUAL_GetUnixProt( BYTE vprot )
if
((
vprot
&
VPROT_COMMITTED
)
&&
!
(
vprot
&
VPROT_GUARD
))
{
if
(
vprot
&
VPROT_READ
)
prot
|=
PROT_READ
;
if
(
vprot
&
VPROT_WRITE
)
prot
|=
PROT_WRITE
;
if
(
vprot
&
VPROT_WRITECOPY
)
prot
|=
PROT_WRITE
;
if
(
vprot
&
VPROT_WRITE
)
prot
|=
PROT_WRITE
|
PROT_READ
;
if
(
vprot
&
VPROT_WRITECOPY
)
prot
|=
PROT_WRITE
|
PROT_READ
;
if
(
vprot
&
VPROT_EXEC
)
prot
|=
PROT_EXEC
|
PROT_READ
;
if
(
vprot
&
VPROT_WRITEWATCH
)
prot
&=
~
PROT_WRITE
;
}
...
...
@@ -1345,9 +1345,9 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
if
(
sec
->
Characteristics
&
IMAGE_SCN_MEM_WRITE
)
{
if
(
sec
->
Characteristics
&
IMAGE_SCN_CNT_UNINITIALIZED_DATA
)
vprot
|=
VPROT_
READ
|
VPROT_
WRITE
;
vprot
|=
VPROT_WRITE
;
else
vprot
|=
VPROT_
READ
|
VPROT_
WRITECOPY
;
vprot
|=
VPROT_WRITECOPY
;
}
/* Dumb game crack lets the AOEP point into a data section. Adjust. */
...
...
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