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
a45931c6
Commit
a45931c6
authored
Apr 15, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of the TEB flags, they are no longer used.
parent
6d169747
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
10 deletions
+2
-10
kernel_main.c
dlls/kernel/kernel_main.c
+1
-1
task.c
dlls/kernel/task.c
+0
-1
thread.c
dlls/ntdll/thread.c
+0
-2
thread.h
include/thread.h
+1
-6
No files found.
dlls/kernel/kernel_main.c
View file @
a45931c6
...
...
@@ -99,7 +99,7 @@ static void thread_detach(void)
/* free the 16-bit stack */
K32WOWGlobalFree16
(
NtCurrentTeb
()
->
stack_sel
);
NtCurrentTeb
()
->
cur_stack
=
0
;
if
(
!
(
NtCurrentTeb
()
->
tibflags
&
TEBF_WIN32
)
)
TASK_ExitTask
();
if
(
NtCurrentTeb
()
->
Tib
.
SubSystemTib
)
TASK_ExitTask
();
}
...
...
dlls/kernel/task.c
View file @
a45931c6
...
...
@@ -447,7 +447,6 @@ static DWORD CALLBACK task_start( TDB *pTask )
{
DWORD
ret
;
NtCurrentTeb
()
->
tibflags
&=
~
TEBF_WIN32
;
NtCurrentTeb
()
->
htask16
=
pTask
->
hSelf
;
NtCurrentTeb
()
->
Tib
.
SubSystemTib
=
allocate_win16_tib
(
pTask
);
...
...
dlls/ntdll/thread.c
View file @
a45931c6
...
...
@@ -116,7 +116,6 @@ void thread_init(void)
InitializeListHead
(
&
tls_links
);
teb
=
alloc_teb
(
&
size
);
teb
->
tibflags
=
TEBF_WIN32
;
teb
->
request_fd
=
-
1
;
teb
->
reply_fd
=
-
1
;
teb
->
wait_fd
[
0
]
=
-
1
;
...
...
@@ -250,7 +249,6 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
teb
->
ClientId
.
UniqueProcess
=
(
HANDLE
)
GetCurrentProcessId
();
teb
->
ClientId
.
UniqueThread
=
(
HANDLE
)
tid
;
teb
->
tibflags
=
TEBF_WIN32
;
teb
->
exit_code
=
STILL_ACTIVE
;
teb
->
request_fd
=
request_pipe
[
1
];
teb
->
reply_fd
=
-
1
;
...
...
include/thread.h
View file @
a45931c6
...
...
@@ -61,8 +61,7 @@ struct debug_info
typedef
struct
_TEB
{
NT_TIB
Tib
;
/* 12- 00 Thread information block */
WORD
tibflags
;
/* 1!n 1c Flags (NT: EnvironmentPointer) */
WORD
mutex_count
;
/* 1-n 1e Win16 mutex count */
PVOID
EnvironmentPointer
;
/* 12- 1c EnvironmentPointer (win95: tib flags + win16 mutex count) */
CLIENT_ID
ClientId
;
/* -2- 20 Process and thread id (win95: debug context) */
HQUEUE16
queue
;
/* 1!- 28 Message queue (NT: DWORD ActiveRpcHandle)*/
WORD
pad1
;
/* --n 2a */
...
...
@@ -134,10 +133,6 @@ typedef struct _TEB
}
TEB
;
#endif
/* WINE_TEB_DEFINED */
/* Thread exception flags */
#define TEBF_WIN32 0x0001
#define TEBF_TRAP 0x0002
/* scheduler/thread.c */
extern
TEB
*
THREAD_InitStack
(
TEB
*
teb
,
DWORD
stack_size
);
...
...
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