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
2ba3d3ac
Commit
2ba3d3ac
authored
Feb 24, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Don't request execute permission for DOS memory.
parent
b48f865f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dosmem.c
dlls/kernel/dosmem.c
+2
-2
No files found.
dlls/kernel/dosmem.c
View file @
2ba3d3ac
...
...
@@ -166,7 +166,7 @@ static char* setup_dos_mem(void)
if
(
wine_mmap_is_in_reserved_area
(
NULL
,
DOSMEM_SIZE
)
!=
1
)
{
addr
=
wine_anon_mmap
(
(
void
*
)
page_size
,
DOSMEM_SIZE
-
page_size
,
PROT_READ
|
PROT_WRITE
|
PROT_EXEC
,
0
);
PROT_READ
|
PROT_WRITE
,
0
);
if
(
addr
==
(
void
*
)
page_size
)
addr
=
NULL
;
/* we got what we wanted */
else
munmap
(
addr
,
DOSMEM_SIZE
-
page_size
);
}
...
...
@@ -174,7 +174,7 @@ static char* setup_dos_mem(void)
if
(
!
addr
)
{
/* now reserve from address 0 */
wine_anon_mmap
(
NULL
,
DOSMEM_SIZE
,
0
,
MAP_FIXED
);
wine_anon_mmap
(
NULL
,
DOSMEM_SIZE
,
PROT_NONE
,
MAP_FIXED
);
/* inform the memory manager that there is a mapping here, but don't commit yet */
VirtualAlloc
(
NULL
,
DOSMEM_SIZE
,
MEM_RESERVE
|
MEM_SYSTEM
,
PAGE_NOACCESS
);
...
...
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