Commit e78e1af4 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Various DPMI fixes and preliminary DPMI raw mode switch handler.

parent fe0a5e88
...@@ -389,6 +389,8 @@ int DOSVM_Enter( PCONTEXT context ) ...@@ -389,6 +389,8 @@ int DOSVM_Enter( PCONTEXT context )
#define CP(x,y) VM86.regs.x = y##_reg(context) #define CP(x,y) VM86.regs.x = y##_reg(context)
CV; CV;
#undef CP #undef CP
if (VM86.regs.eflags & IF_MASK)
VM86.regs.eflags |= VIF_MASK;
} else { } else {
/* initial setup */ /* initial setup */
/* allocate standard DOS handles */ /* allocate standard DOS handles */
......
...@@ -537,9 +537,9 @@ void MZ_KillModule( LPDOSTASK lpDosTask ) ...@@ -537,9 +537,9 @@ void MZ_KillModule( LPDOSTASK lpDosTask )
#undef DFREE #undef DFREE
#if 0 #if 0
/* FIXME: this seems to crash */ /* FIXME: this seems to crash */
if (lpDosTask->dpmi_sel) if (lpDosTask->dpmi_sel)
UnMapLS(PTR_SEG_OFF_TO_SEGPTR(lpDosTask->dpmi_sel,0)); SELECTOR_FreeBlock(lpDosTask->dpmi_sel, 1);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment