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
f473e313
Commit
f473e313
authored
Jun 13, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Load modules with a high base address in high memory.
parent
a82238fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
virtual.c
dlls/ntdll/unix/virtual.c
+8
-2
No files found.
dlls/ntdll/unix/virtual.c
View file @
f473e313
...
@@ -2829,9 +2829,15 @@ static NTSTATUS virtual_map_image( HANDLE mapping, void **addr_ptr, SIZE_T *size
...
@@ -2829,9 +2829,15 @@ static NTSTATUS virtual_map_image( HANDLE mapping, void **addr_ptr, SIZE_T *size
base
=
wine_server_get_ptr
(
image_info
->
base
);
base
=
wine_server_get_ptr
(
image_info
->
base
);
if
((
ULONG_PTR
)
base
!=
image_info
->
base
)
base
=
NULL
;
if
((
ULONG_PTR
)
base
!=
image_info
->
base
)
base
=
NULL
;
if
((
char
*
)
base
>=
(
char
*
)
address_space_start
)
/* make sure the DOS area remains free */
limit_low
=
max
(
limit_low
,
(
ULONG_PTR
)
address_space_start
);
/* make sure the DOS area remains free */
status
=
map_view
(
&
view
,
base
,
size
,
alloc_type
,
vprot
,
limit_low
,
limit_high
,
0
);
status
=
map_view
(
&
view
,
base
,
size
,
alloc_type
,
vprot
,
limit_low
,
limit_high
,
0
);
if
(
status
&&
limit_low
<
limit_4g
)
{
if
((
ULONG_PTR
)
base
>=
limit_4g
)
status
=
map_view
(
&
view
,
NULL
,
size
,
alloc_type
,
vprot
,
limit_4g
,
limit_high
,
0
);
else
if
(
limit_high
>
limit_2g
)
status
=
map_view
(
&
view
,
NULL
,
size
,
alloc_type
,
vprot
,
limit_low
,
limit_2g
-
1
,
0
);
}
if
(
status
)
status
=
map_view
(
&
view
,
NULL
,
size
,
alloc_type
,
vprot
,
limit_low
,
limit_high
,
0
);
if
(
status
)
status
=
map_view
(
&
view
,
NULL
,
size
,
alloc_type
,
vprot
,
limit_low
,
limit_high
,
0
);
if
(
status
)
goto
done
;
if
(
status
)
goto
done
;
...
...
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