At 10:44 PM 5/18/00 +0200, you wrote:
>
>Ah! I think I see the problem: the pTask->teb->cur_stack points to the
>16-bit stack *after* the complete 16->32 thunking stack frame was pushed.
>The stackmin/stackbottom fields, however, are supposed to contain the
>stack pointer at the point of *call* to InitTask ...
>
>Could you try with:
>
> pinstance->stackmin = OFFSETOF(pTask->teb->cur_stack) + sizeof(STACK16FRAME);
> pinstance->stackbottom = pinstance->stackmin;
Works fine.
Thanks; Ulrich; I was really not enjoying myself while looking at this problem - I
have never done
any winapi 16 bits programming and it was just blind trial and error. I think it's
better you send
this to winehq since this stuff.is more your cup of tea (or of wine).
Bye
Gerard