From 740e31fd2eaf8f4073740ba5d90cf0b9ce529164 Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Fri, 20 Aug 2021 18:24:45 -0400 Subject: [PATCH] don't overwrite CX on windows startup broadcast, windows sets this to 0 so unneeded and another program in chain may have set to nonzero for a reason --- kernel/inthndlr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index d766cf7..00dcf37 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -1984,7 +1984,7 @@ VOID ASMCFUNC int2F_12_handler(struct int2f12regs FAR *pr) set to memory manager calling point to disable V86 ES:BX is 0000:0000, set to startup structure */ - r.CX = 0x0; /* it is ok to load Windows, give it a shot anyway :-) */ + /* r.CX = 0x0; ** redundant and could be set nonzero by another hooked program */ r.es = FP_SEG(&winStartupInfo); r.BX = FP_OFF(&winStartupInfo); winStartupInfo.winver = r.di; /* match what caller says it is */