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
78ffde79
Commit
78ffde79
authored
Jun 08, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Report the remaining part of the 64K after a view as free.
To avoid returning non-aligned reserved regions.
parent
8b992fec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
virtual.c
dlls/ntdll/unix/virtual.c
+12
-0
No files found.
dlls/ntdll/unix/virtual.c
View file @
78ffde79
...
...
@@ -4638,6 +4638,18 @@ static unsigned int fill_basic_memory_info( const void *addr, MEMORY_BASIC_INFOR
if
(
area_end
<
alloc_end
)
info
->
RegionSize
=
area_end
-
base
;
break
;
}
/* report the remaining part of the 64K after the view as free */
if
((
UINT_PTR
)
alloc_base
&
granularity_mask
)
{
char
*
next
=
(
char
*
)
ROUND_ADDR
(
alloc_base
,
granularity_mask
)
+
granularity_mask
+
1
;
if
(
base
<
next
)
{
info
->
RegionSize
=
min
(
next
,
alloc_end
)
-
base
;
break
;
}
else
alloc_base
=
base
;
}
/* pretend it's allocated */
if
(
area_start
<
alloc_end
)
info
->
RegionSize
=
area_start
-
base
;
info
->
State
=
MEM_RESERVE
;
...
...
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