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
3033e090
Commit
3033e090
authored
Feb 23, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Do not force 2G stack limit for the main thread of 64 bit process.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3d25fbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
loader.c
dlls/ntdll/unix/loader.c
+1
-1
thread.c
dlls/ntdll/unix/thread.c
+2
-1
No files found.
dlls/ntdll/unix/loader.c
View file @
3033e090
...
...
@@ -2169,7 +2169,7 @@ static void start_main_thread(void)
if
(
p___wine_main_wargv
)
*
p___wine_main_wargv
=
main_wargv
;
*
(
ULONG_PTR
*
)
&
peb
->
CloudFileFlags
=
get_image_address
();
set_load_order_app_name
(
main_wargv
[
0
]
);
init_thread_stack
(
teb
,
is_win64
?
0x7fffffff
:
0
,
0
,
0
);
init_thread_stack
(
teb
,
0
,
0
,
0
);
NtCreateKeyedEvent
(
&
keyed_event
,
GENERIC_READ
|
GENERIC_WRITE
,
NULL
,
0
);
load_ntdll
();
if
(
main_image_info
.
Machine
!=
current_machine
)
load_wow64_ntdll
(
main_image_info
.
Machine
);
...
...
dlls/ntdll/unix/thread.c
View file @
3033e090
...
...
@@ -1156,7 +1156,8 @@ NTSTATUS init_thread_stack( TEB *teb, ULONG_PTR zero_bits, SIZE_T reserve_size,
#ifdef _WIN64
/* 32-bit stack */
if
((
status
=
virtual_alloc_thread_stack
(
&
stack
,
zero_bits
,
reserve_size
,
commit_size
,
0
)))
if
((
status
=
virtual_alloc_thread_stack
(
&
stack
,
zero_bits
?
zero_bits
:
0x7fffffff
,
reserve_size
,
commit_size
,
0
)))
return
status
;
wow_teb
->
Tib
.
StackBase
=
PtrToUlong
(
stack
.
StackBase
);
wow_teb
->
Tib
.
StackLimit
=
PtrToUlong
(
stack
.
StackLimit
);
...
...
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