Removed THREAD_IsWin16.
diff --git a/include/thread.h b/include/thread.h
index 6f46457..03c4ba7 100644
--- a/include/thread.h
+++ b/include/thread.h
@@ -127,7 +127,6 @@
/* scheduler/thread.c */
extern void THREAD_Init(void);
extern TEB *THREAD_InitStack( TEB *teb, DWORD stack_size );
-extern BOOL THREAD_IsWin16( TEB *thdb );
extern TEB *THREAD_IdToTEB( DWORD id );
/* scheduler/sysdeps.c */
diff --git a/loader/task.c b/loader/task.c
index 4077211..49fe403 100644
--- a/loader/task.c
+++ b/loader/task.c
@@ -579,7 +579,7 @@
if (!hTask) hTask = GetCurrentTask();
pTask = TASK_GetPtr( hTask );
- if ( !THREAD_IsWin16( NtCurrentTeb() ) )
+ if (pTask->flags & TDBF_WIN32)
{
FIXME("called for Win32 thread (%04x)!\n", NtCurrentTeb()->teb_sel);
return TRUE;
@@ -618,7 +618,7 @@
if (!hTask) hTask = GetCurrentTask();
if (!(pTask = TASK_GetPtr( hTask ))) return;
- if ( !THREAD_IsWin16( pTask->teb ) )
+ if (pTask->flags & TDBF_WIN32)
{
FIXME("called for Win32 thread (%04x)!\n", pTask->teb->teb_sel );
return;
@@ -700,7 +700,7 @@
{
TDB *pCurTask = TASK_GetCurrent();
- if ( !THREAD_IsWin16( NtCurrentTeb() ) )
+ if (pCurTask->flags & TDBF_WIN32)
{
FIXME("called for Win32 thread (%04x)!\n", NtCurrentTeb()->teb_sel);
return;
@@ -1043,7 +1043,7 @@
return 0;
}
}
- Callout.InitThreadInput16( 0, THREAD_IsWin16(teb)? 4 : 5 );
+ Callout.InitThreadInput16( 0, (teb->tibflags & TEBF_WIN32) ? 5 : 4 );
if (!teb->queue)
FIXME("(): should initialize thread-local queue, expect failure!\n" );
diff --git a/scheduler/thread.c b/scheduler/thread.c
index 9bc1f64..cf84b50 100644
--- a/scheduler/thread.c
+++ b/scheduler/thread.c
@@ -38,14 +38,6 @@
extern struct _PDB current_process;
/***********************************************************************
- * THREAD_IsWin16
- */
-BOOL THREAD_IsWin16( TEB *teb )
-{
- return !teb || !(teb->tibflags & TEBF_WIN32);
-}
-
-/***********************************************************************
* THREAD_IdToTEB
*
* Convert a thread id to a TEB, making sure it is valid.