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
1722615b
Commit
1722615b
authored
Nov 04, 2021
by
Paul Gofman
Committed by
Alexandre Julliard
Nov 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't constraint TEB address to 2GB for native x64 process.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b1ae6fd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
virtual.c
dlls/ntdll/unix/virtual.c
+3
-2
No files found.
dlls/ntdll/unix/virtual.c
View file @
1722615b
...
...
@@ -3021,6 +3021,7 @@ NTSTATUS virtual_alloc_teb( TEB **ret_teb )
void
*
ptr
=
NULL
;
NTSTATUS
status
=
STATUS_SUCCESS
;
SIZE_T
block_size
=
signal_stack_mask
+
1
;
BOOL
is_wow
=
!!
NtCurrentTeb
()
->
WowTebOffset
;
server_enter_uninterrupted_section
(
&
virtual_mutex
,
&
sigset
);
if
(
next_free_teb
)
...
...
@@ -3035,7 +3036,7 @@ NTSTATUS virtual_alloc_teb( TEB **ret_teb )
{
SIZE_T
total
=
32
*
block_size
;
if
((
status
=
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
ptr
,
is_win64
?
0x7fffffff
:
0
,
if
((
status
=
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
ptr
,
is_win64
&&
is_wow
?
0x7fffffff
:
0
,
&
total
,
MEM_RESERVE
,
PAGE_READWRITE
)))
{
server_leave_uninterrupted_section
(
&
virtual_mutex
,
&
sigset
);
...
...
@@ -3048,7 +3049,7 @@ NTSTATUS virtual_alloc_teb( TEB **ret_teb )
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
(
void
**
)
&
ptr
,
0
,
&
block_size
,
MEM_COMMIT
,
PAGE_READWRITE
);
}
*
ret_teb
=
teb
=
init_teb
(
ptr
,
!!
NtCurrentTeb
()
->
WowTebOffset
);
*
ret_teb
=
teb
=
init_teb
(
ptr
,
is_wow
);
server_leave_uninterrupted_section
(
&
virtual_mutex
,
&
sigset
);
if
((
status
=
signal_alloc_thread
(
teb
)))
...
...
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