Unable to return from DPMI real mode callback. (Miscellaneous)
> > What am I missing? Thanks in advance.
>
> It might be that you are NOT supposed to "pop" the flags from the real-mode
> stack. This depends on how your callback is called from real-mode. If it is
> just a far call, then you "should" NOT "pop" the flags - that is,
> pRmRegs->sp is to be increased by 4 only, not 6.
Thanks for the quick response.
I have tried incrementing pRmRegs->sp by only 4 but with same result (application seems to hang at end of execution of callback)
Is it correctly understood that the real mode stack is a "raw" copy reflecting a 16 bit environment having 16 bit register pushed to it (meaning it is IP rather than EIP that is on top of the real mode stack)?
BR
Thomas
Complete thread:
- Unable to return from DPMI real mode callback. - tgr, 07.11.2011, 16:31 (Miscellaneous)
- Unable to return from DPMI real mode callback. - Japheth, 07.11.2011, 17:29
- Unable to return from DPMI real mode callback. - tgr, 08.11.2011, 23:15
- Unable to return from DPMI real mode callback. - Japheth, 09.11.2011, 05:33
- Unable to return from DPMI real mode callback. - tgr, 08.11.2011, 23:15
- Unable to return from DPMI real mode callback. - Japheth, 07.11.2011, 17:29