Commit 7c4b1403 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed HTASK/HTASK16 handle mismatch.

parent e54cf7b4
......@@ -146,8 +146,8 @@ typedef struct _THHOOK
extern THHOOK *pThhook;
extern void TASK_CreateMainTask(void);
extern HTASK TASK_SpawnTask( struct _NE_MODULE *pModule, WORD cmdShow,
LPCSTR cmdline, BYTE len, HANDLE *hThread );
extern HTASK16 TASK_SpawnTask( struct _NE_MODULE *pModule, WORD cmdShow,
LPCSTR cmdline, BYTE len, HANDLE *hThread );
extern void TASK_ExitTask(void);
extern HTASK16 TASK_GetNextTask( 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;
TDB *pTask;
HTASK hTask;
HTASK16 hTask;
HINSTANCE16 instance = 0;
if (!(hTask = TASK_SpawnTask( pModule, cmdShow, cmdline + 1, *cmdline, &hThread )))
......
......@@ -54,7 +54,7 @@ THHOOK *pThhook = &DefaultThhook;
static UINT16 nTaskCount = 0;
static HTASK initial_task;
static HTASK16 initial_task;
/***********************************************************************
* TASK_InstallTHHook
......@@ -437,7 +437,8 @@ static DWORD CALLBACK task_start( TDB *pTask )
*
* 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment