Fixed initialization of INSTANCEDATA in InitTask().
diff --git a/loader/task.c b/loader/task.c
index b6f704f..cce67b5 100644
--- a/loader/task.c
+++ b/loader/task.c
@@ -709,7 +709,7 @@
/* 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;