Robert Shearman:
> It is a Win16 program and I don't think it uses DPMI at all.
Ok. In that case insert_event_check should be NOP anyway
because asynchronous event checking routine
(see DPMI_PendingEventCheck in relay16asm.s) checks for
both TEB.dpmi_vif and TEB.vip_pending and the latter
should a
) hacking around this issue I
still got unprivileged instruction exceptions from the iret instruction.
Without more expert eyes being cast on this code the only thing I can
suggest to fix non-DPMI applications with the above case is to disable
DPMI event checking.
Well, your patch actually