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
cec83fed
Commit
cec83fed
authored
Dec 26, 2019
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Split view search initialization to find_view_inside_range function.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d840d785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
virtual.c
dlls/ntdll/virtual.c
+23
-5
No files found.
dlls/ntdll/virtual.c
View file @
cec83fed
...
...
@@ -496,17 +496,17 @@ static struct file_view *find_view_range( const void *addr, size_t size )
return
NULL
;
}
/***********************************************************************
* find_
reserved_free_area
* find_
view_inside_range
*
* Find
a free area between views inside the specified
range.
* Find
first (resp. last, if top_down) view inside a
range.
* The csVirtual section must be held by caller.
* The range must be inside the preloader reserved range.
*/
static
void
*
find_reserved_free_area
(
void
*
base
,
void
*
end
,
size_t
size
,
size_t
mask
,
int
top_down
)
static
struct
wine_rb_entry
*
find_view_inside_range
(
void
**
base_ptr
,
void
**
end_ptr
,
int
top_down
)
{
struct
wine_rb_entry
*
first
=
NULL
,
*
ptr
=
views_tree
.
root
;
void
*
start
;
void
*
base
=
*
base_ptr
,
*
end
=
*
end_ptr
;
/* find the first (resp. last) view inside the range */
while
(
ptr
)
...
...
@@ -529,6 +529,24 @@ static void *find_reserved_free_area( void *base, void *end, size_t size, size_t
}
}
*
base_ptr
=
base
;
*
end_ptr
=
end
;
return
first
;
}
/***********************************************************************
* find_reserved_free_area
*
* Find a free area between views inside the specified range.
* The csVirtual section must be held by caller.
* The range must be inside the preloader reserved range.
*/
static
void
*
find_reserved_free_area
(
void
*
base
,
void
*
end
,
size_t
size
,
size_t
mask
,
int
top_down
)
{
struct
wine_rb_entry
*
first
=
find_view_inside_range
(
&
base
,
&
end
,
top_down
);
void
*
start
;
if
(
top_down
)
{
start
=
ROUND_ADDR
(
(
char
*
)
end
-
size
,
mask
);
...
...
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