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
b7ea896f
Commit
b7ea896f
authored
May 18, 2023
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 map_view().
parent
383d43d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
virtual.c
dlls/ntdll/unix/virtual.c
+17
-0
No files found.
dlls/ntdll/unix/virtual.c
View file @
b7ea896f
...
...
@@ -1980,6 +1980,23 @@ static NTSTATUS map_view( struct file_view **view_ret, void *base, size_t size,
void
*
ptr
;
NTSTATUS
status
;
if
(
alloc_type
&
MEM_REPLACE_PLACEHOLDER
)
{
struct
file_view
*
view
;
if
(
!
(
view
=
find_view
(
base
,
0
)))
return
STATUS_INVALID_PARAMETER
;
if
(
view
->
base
!=
base
||
view
->
size
!=
size
)
return
STATUS_CONFLICTING_ADDRESSES
;
if
(
!
(
view
->
protect
&
VPROT_FREE_PLACEHOLDER
))
return
STATUS_INVALID_PARAMETER
;
TRACE
(
"found view %p, size %p, protect %#x.
\n
"
,
view
->
base
,
(
void
*
)
view
->
size
,
view
->
protect
);
view
->
protect
=
vprot
|
VPROT_PLACEHOLDER
;
set_vprot
(
view
,
base
,
size
,
vprot
);
if
(
vprot
&
VPROT_WRITEWATCH
)
reset_write_watches
(
base
,
size
);
*
view_ret
=
view
;
return
STATUS_SUCCESS
;
}
if
(
base
)
{
if
(
is_beyond_limit
(
base
,
size
,
address_space_limit
))
...
...
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