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
87948793
Commit
87948793
authored
Jul 01, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Clear the 32-bit TLS for ZeroTlsCell in Wow64 mode.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3469ebf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
virtual.c
dlls/ntdll/unix/virtual.c
+14
-0
No files found.
dlls/ntdll/unix/virtual.c
View file @
87948793
...
...
@@ -3017,6 +3017,11 @@ NTSTATUS virtual_clear_tls_index( ULONG index )
LIST_FOR_EACH_ENTRY
(
thread_data
,
&
teb_list
,
struct
ntdll_thread_data
,
entry
)
{
TEB
*
teb
=
CONTAINING_RECORD
(
thread_data
,
TEB
,
GdiTebBatch
);
#ifdef _WIN64
WOW_TEB
*
wow_teb
=
get_wow_teb
(
teb
);
if
(
wow_teb
)
wow_teb
->
TlsSlots
[
index
]
=
0
;
else
#endif
teb
->
TlsSlots
[
index
]
=
0
;
}
server_leave_uninterrupted_section
(
&
virtual_mutex
,
&
sigset
);
...
...
@@ -3030,6 +3035,15 @@ NTSTATUS virtual_clear_tls_index( ULONG index )
LIST_FOR_EACH_ENTRY
(
thread_data
,
&
teb_list
,
struct
ntdll_thread_data
,
entry
)
{
TEB
*
teb
=
CONTAINING_RECORD
(
thread_data
,
TEB
,
GdiTebBatch
);
#ifdef _WIN64
WOW_TEB
*
wow_teb
=
get_wow_teb
(
teb
);
if
(
wow_teb
)
{
if
(
wow_teb
->
TlsExpansionSlots
)
((
ULONG
*
)
ULongToPtr
(
wow_teb
->
TlsExpansionSlots
))[
index
]
=
0
;
}
else
#endif
if
(
teb
->
TlsExpansionSlots
)
teb
->
TlsExpansionSlots
[
index
]
=
0
;
}
server_leave_uninterrupted_section
(
&
virtual_mutex
,
&
sigset
);
...
...
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