Skip to content

Commit

Permalink
Set the dreaded nested task (NT) flag to 0 to not upset DPMI extender…
Browse files Browse the repository at this point in the history
…s on DOS reset_environment (could cause an invalid TSS fault lateron when CPU switches to PM again) #183
  • Loading branch information
leecher1337 committed Jan 24, 2022
1 parent e45b615 commit 0ed0363
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ntvdmpatch/patches/common/dpmi.patch
Original file line number Diff line number Diff line change
Expand Up @@ -480,3 +480,11 @@
> else
450a456
> endif
--- NT4\private\mvdm\dos\v86\doskrnl\dos\msctrlc.asm
+++ nt\private\mvdm\dos\v86\doskrnl\dos\msctrlc.asm
1091c1091,1093
< MOV AH, 0F2h
---
> ; MOV AH, 0F2h
> ; leecher1337: We are a 386, so set the dreaded nested task (NT) flag to 0 to not upset DPMI extenders
> MOV AH, 02h

0 comments on commit 0ed0363

Please sign in to comment.