Fixed HTASK/HTASK16 handle mismatch.
This commit is contained in:
parent
e54cf7b4d5
commit
7c4b14031e
|
@ -146,8 +146,8 @@ typedef struct _THHOOK
|
||||||
extern THHOOK *pThhook;
|
extern THHOOK *pThhook;
|
||||||
|
|
||||||
extern void TASK_CreateMainTask(void);
|
extern void TASK_CreateMainTask(void);
|
||||||
extern HTASK TASK_SpawnTask( struct _NE_MODULE *pModule, WORD cmdShow,
|
extern HTASK16 TASK_SpawnTask( struct _NE_MODULE *pModule, WORD cmdShow,
|
||||||
LPCSTR cmdline, BYTE len, HANDLE *hThread );
|
LPCSTR cmdline, BYTE len, HANDLE *hThread );
|
||||||
extern void TASK_ExitTask(void);
|
extern void TASK_ExitTask(void);
|
||||||
extern HTASK16 TASK_GetNextTask( HTASK16 hTask );
|
extern HTASK16 TASK_GetNextTask( HTASK16 hTask );
|
||||||
extern TDB *TASK_GetPtr( HTASK16 hTask );
|
extern TDB *TASK_GetPtr( HTASK16 hTask );
|
||||||
|
|
|
@ -987,7 +987,7 @@ static HINSTANCE16 NE_CreateThread( NE_MODULE *pModule, WORD cmdShow, LPCSTR cmd
|
||||||
{
|
{
|
||||||
HANDLE hThread;
|
HANDLE hThread;
|
||||||
TDB *pTask;
|
TDB *pTask;
|
||||||
HTASK hTask;
|
HTASK16 hTask;
|
||||||
HINSTANCE16 instance = 0;
|
HINSTANCE16 instance = 0;
|
||||||
|
|
||||||
if (!(hTask = TASK_SpawnTask( pModule, cmdShow, cmdline + 1, *cmdline, &hThread )))
|
if (!(hTask = TASK_SpawnTask( pModule, cmdShow, cmdline + 1, *cmdline, &hThread )))
|
||||||
|
|
|
@ -54,7 +54,7 @@ THHOOK *pThhook = &DefaultThhook;
|
||||||
|
|
||||||
static UINT16 nTaskCount = 0;
|
static UINT16 nTaskCount = 0;
|
||||||
|
|
||||||
static HTASK initial_task;
|
static HTASK16 initial_task;
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* TASK_InstallTHHook
|
* TASK_InstallTHHook
|
||||||
|
@ -437,7 +437,8 @@ static DWORD CALLBACK task_start( TDB *pTask )
|
||||||
*
|
*
|
||||||
* Spawn a new 16-bit task.
|
* Spawn a new 16-bit task.
|
||||||
*/
|
*/
|
||||||
HTASK TASK_SpawnTask( NE_MODULE *pModule, WORD cmdShow, LPCSTR cmdline, BYTE len, HANDLE *hThread )
|
HTASK16 TASK_SpawnTask( NE_MODULE *pModule, WORD cmdShow,
|
||||||
|
LPCSTR cmdline, BYTE len, HANDLE *hThread )
|
||||||
{
|
{
|
||||||
TDB *pTask;
|
TDB *pTask;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue