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
aa3e772a
Commit
aa3e772a
authored
Feb 24, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Mark the Wow64 TLS slots as reserved.
parent
881defc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
loader.c
dlls/ntdll/loader.c
+2
-1
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/loader.c
View file @
aa3e772a
...
...
@@ -4176,7 +4176,8 @@ void WINAPI LdrInitializeThunk( CONTEXT *context, ULONG_PTR unknown2, ULONG_PTR
RtlInitializeBitMap
(
&
tls_bitmap
,
peb
->
TlsBitmapBits
,
sizeof
(
peb
->
TlsBitmapBits
)
*
8
);
RtlInitializeBitMap
(
&
tls_expansion_bitmap
,
peb
->
TlsExpansionBitmapBits
,
sizeof
(
peb
->
TlsExpansionBitmapBits
)
*
8
);
RtlSetBits
(
peb
->
TlsBitmap
,
0
,
1
);
/* TLS index 0 is reserved and should be initialized to NULL. */
/* TLS index 0 is always reserved, and wow64 reserves extra TLS entries */
RtlSetBits
(
peb
->
TlsBitmap
,
0
,
NtCurrentTeb
()
->
WowTebOffset
?
WOW64_TLS_MAX_NUMBER
:
1
);
init_user_process_params
();
load_global_options
();
...
...
include/winternl.h
View file @
aa3e772a
...
...
@@ -1084,6 +1084,7 @@ typedef struct _TEB64
#define WOW64_TLS_TEMPLIST 3
#define WOW64_TLS_USERCALLBACKDATA 5
#define WOW64_TLS_FILESYSREDIR 8
#define WOW64_TLS_MAX_NUMBER 19
/***********************************************************************
...
...
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