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
ddb00243
Commit
ddb00243
authored
Jun 21, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't require execute permission on the process heap.
parent
863a4b14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
heap.c
dlls/ntdll/heap.c
+3
-3
No files found.
dlls/ntdll/heap.c
View file @
ddb00243
...
...
@@ -375,7 +375,7 @@ static inline BOOL HEAP_Commit( SUBHEAP *subheap, void *ptr )
size
-=
subheap
->
commitSize
;
ptr
=
(
char
*
)
subheap
+
subheap
->
commitSize
;
if
(
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
ptr
,
0
,
&
size
,
MEM_COMMIT
,
PAGE_
EXECUTE_READWRITE
))
&
size
,
MEM_COMMIT
,
PAGE_
READWRITE
))
{
WARN
(
"Could not commit %08lx bytes at %p for heap %p
\n
"
,
size
,
ptr
,
subheap
->
heap
);
...
...
@@ -561,7 +561,7 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags,
if
(
flags
&
HEAP_SHARED
)
commitSize
=
totalSize
;
/* always commit everything in a shared heap */
if
(
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
address
,
0
,
&
commitSize
,
MEM_COMMIT
,
PAGE_
EXECUTE_READWRITE
))
&
commitSize
,
MEM_COMMIT
,
PAGE_
READWRITE
))
{
WARN
(
"Could not commit %08lx bytes for sub-heap %p
\n
"
,
commitSize
,
address
);
return
FALSE
;
...
...
@@ -650,7 +650,7 @@ static SUBHEAP *HEAP_CreateSubHeap( HEAP *heap, void *base, DWORD flags,
{
/* allocate the memory block */
if
(
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
address
,
0
,
&
totalSize
,
MEM_RESERVE
,
PAGE_
EXECUTE_
READWRITE
))
MEM_RESERVE
,
PAGE_READWRITE
))
{
WARN
(
"Could not allocate %08lx bytes
\n
"
,
totalSize
);
return
NULL
;
...
...
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