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
9979c793
Commit
9979c793
authored
Sep 19, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't clear the last page of the initial stack.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a003f0ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
loader.c
dlls/ntdll/loader.c
+1
-1
virtual.c
dlls/ntdll/virtual.c
+2
-2
No files found.
dlls/ntdll/loader.c
View file @
9979c793
...
...
@@ -3152,7 +3152,7 @@ void WINAPI LdrInitializeThunk( void *kernel_start, ULONG_PTR unknown2,
if
((
status
=
fixup_imports
(
wm
,
load_path
))
!=
STATUS_SUCCESS
)
goto
error
;
heap_set_debug_flags
(
GetProcessHeap
()
);
status
=
wine_call_on_stack
(
attach_process_dlls
,
wm
,
NtCurrentTeb
()
->
Tib
.
StackBas
e
);
status
=
wine_call_on_stack
(
attach_process_dlls
,
wm
,
(
char
*
)
NtCurrentTeb
()
->
Tib
.
StackBase
-
page_siz
e
);
if
(
status
!=
STATUS_SUCCESS
)
goto
error
;
virtual_release_address_space
();
...
...
dlls/ntdll/virtual.c
View file @
9979c793
...
...
@@ -1745,8 +1745,8 @@ void virtual_clear_thread_stack(void)
void
*
stack
=
NtCurrentTeb
()
->
Tib
.
StackLimit
;
size_t
size
=
(
char
*
)
NtCurrentTeb
()
->
Tib
.
StackBase
-
(
char
*
)
NtCurrentTeb
()
->
Tib
.
StackLimit
;
wine_anon_mmap
(
stack
,
size
,
PROT_READ
|
PROT_WRITE
,
MAP_FIXED
);
if
(
force_exec_prot
)
mprotect
(
stack
,
size
,
PROT_READ
|
PROT_WRITE
|
PROT_EXEC
);
wine_anon_mmap
(
stack
,
size
-
page_size
,
PROT_READ
|
PROT_WRITE
,
MAP_FIXED
);
if
(
force_exec_prot
)
mprotect
(
stack
,
size
-
page_size
,
PROT_READ
|
PROT_WRITE
|
PROT_EXEC
);
}
...
...
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