Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
746d900b
Commit
746d900b
authored
Nov 18, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force minimum stack size to 1Mb for Xlib.
parent
76adb1ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
thread.c
dlls/kernel/thread.c
+1
-0
thread.c
dlls/ntdll/thread.c
+1
-0
No files found.
dlls/kernel/thread.c
View file @
746d900b
...
...
@@ -62,6 +62,7 @@ TEB *THREAD_InitStack( TEB *teb, DWORD stack_size )
void
*
base
;
stack_size
=
(
stack_size
+
(
page_size
-
1
))
&
~
(
page_size
-
1
);
if
(
stack_size
<
1024
*
1024
)
stack_size
=
1024
*
1024
;
/* Xlib needs a large stack */
if
(
!
(
base
=
VirtualAlloc
(
NULL
,
stack_size
,
MEM_COMMIT
,
PAGE_EXECUTE_READWRITE
)))
return
NULL
;
...
...
dlls/ntdll/thread.c
View file @
746d900b
...
...
@@ -259,6 +259,7 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
}
if
(
stack_reserve
<
stack_commit
)
stack_reserve
=
stack_commit
;
stack_reserve
=
(
stack_reserve
+
0xffff
)
&
~
0xffff
;
/* round to 64K boundary */
if
(
stack_reserve
<
1024
*
1024
)
stack_reserve
=
1024
*
1024
;
/* Xlib needs a large stack */
info
->
stack_base
=
NULL
;
info
->
stack_size
=
stack_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