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

This commit is contained in:
Kenneth J Davis 2021-08-20 18:24:45 -04:00
parent b0f5e79205
commit 740e31fd2e

View File

@ -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 */