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
04e2b02a
Commit
04e2b02a
authored
Nov 10, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
May 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Support MEM_REPLACE_PLACEHOLDER in NtAllocateVirtualMemoryEx().
parent
b7ea896f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
virtual.c
dlls/ntdll/unix/virtual.c
+4
-3
No files found.
dlls/ntdll/unix/virtual.c
View file @
04e2b02a
...
...
@@ -4068,7 +4068,7 @@ static NTSTATUS allocate_virtual_memory( void **ret, SIZE_T *size_ptr, ULONG typ
if
(
*
ret
)
{
if
(
type
&
MEM_RESERVE
)
/* Round down to 64k boundary */
if
(
type
&
MEM_RESERVE
&&
!
(
type
&
MEM_REPLACE_PLACEHOLDER
)
)
/* Round down to 64k boundary */
base
=
ROUND_ADDR
(
*
ret
,
granularity_mask
);
else
base
=
ROUND_ADDR
(
*
ret
,
page_mask
);
...
...
@@ -4092,7 +4092,8 @@ static NTSTATUS allocate_virtual_memory( void **ret, SIZE_T *size_ptr, ULONG typ
/* Compute the alloc type flags */
if
(
!
(
type
&
(
MEM_COMMIT
|
MEM_RESERVE
|
MEM_RESET
)))
if
(
!
(
type
&
(
MEM_COMMIT
|
MEM_RESERVE
|
MEM_RESET
))
||
(
type
&
MEM_REPLACE_PLACEHOLDER
&&
!
(
type
&
MEM_RESERVE
)))
{
WARN
(
"called with wrong alloc type flags (%08x) !
\n
"
,
(
int
)
type
);
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -4291,7 +4292,7 @@ NTSTATUS WINAPI NtAllocateVirtualMemoryEx( HANDLE process, PVOID *ret, SIZE_T *s
ULONG
count
)
{
static
const
ULONG
type_mask
=
MEM_COMMIT
|
MEM_RESERVE
|
MEM_TOP_DOWN
|
MEM_WRITE_WATCH
|
MEM_RESET
|
MEM_RESERVE_PLACEHOLDER
;
|
MEM_RESET
|
MEM_RESERVE_PLACEHOLDER
|
MEM_REPLACE_PLACEHOLDER
;
ULONG_PTR
limit
=
0
;
ULONG_PTR
align
=
0
;
ULONG
attributes
=
0
;
...
...
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