Don't initialise the stacks for 32-bit processes.

This commit is contained in:
Alexandre Julliard 1999-05-02 19:10:04 +00:00
parent 8d267a6041
commit 1c4c409f04
1 changed files with 7 additions and 7 deletions

View File

@ -406,6 +406,13 @@ BOOL TASK_Create( THDB *thdb, NE_MODULE *pModule, HINSTANCE16 hInstance,
pTask->dta = PTR_SEG_OFF_TO_SEGPTR( pTask->hPDB, pTask->dta = PTR_SEG_OFF_TO_SEGPTR( pTask->hPDB,
(int)&pTask->pdb.cmdLine - (int)&pTask->pdb ); (int)&pTask->pdb.cmdLine - (int)&pTask->pdb );
/* Enter task handle into thread and process */
pTask->thdb->teb.htask16 = pTask->thdb->process->task = hTask;
TRACE_(task)("module='%s' cmdline='%s' task=%04x\n", name, cmd_line, hTask );
if (pTask->flags & TDBF_WIN32) return;
/* If we have a DGROUP/hInstance, use it for 16-bit stack */ /* If we have a DGROUP/hInstance, use it for 16-bit stack */
if ( hInstance ) if ( hInstance )
@ -442,13 +449,6 @@ BOOL TASK_Create( THDB *thdb, NE_MODULE *pModule, HINSTANCE16 hInstance,
frame32->retaddr = (DWORD)TASK_CallToStart; frame32->retaddr = (DWORD)TASK_CallToStart;
/* The remaining fields will be initialized in TASK_Reschedule */ /* The remaining fields will be initialized in TASK_Reschedule */
/* Enter task handle into thread and process */
pTask->thdb->teb.htask16 = pTask->thdb->process->task = hTask;
TRACE_(task)("module='%s' cmdline='%s' task=%04x\n",
name, cmd_line, hTask );
return TRUE; return TRUE;
} }