diff --git a/loader/task.c b/loader/task.c index b6f704fb61c..cce67b5dd2b 100644 --- a/loader/task.c +++ b/loader/task.c @@ -709,7 +709,7 @@ void WINAPI InitTask16( CONTEXT86 *context ) /* Initialize the INSTANCEDATA structure */ pinstance = (INSTANCEDATA *)PTR_SEG_OFF_TO_LIN(CURRENT_DS, 0); - pinstance->stackmin = OFFSETOF( pTask->teb->cur_stack ); + pinstance->stackmin = OFFSETOF( pTask->teb->cur_stack ) + sizeof( STACK16FRAME ); pinstance->stackbottom = pinstance->stackmin; /* yup, that's right. Confused me too. */ pinstance->stacktop = ( pinstance->stackmin > BX_reg(context)? pinstance->stackmin - BX_reg(context) : 0 ) + 150;