Set AL to 0 for unimplemented functions in INT 21h.


svn path=/branches/ntvdm/; revision=61161
This commit is contained in:
Aleksandar Andrejevic 2013-12-01 00:17:46 +00:00
parent ba237b0251
commit e765c894f0

View file

@ -2419,6 +2419,8 @@ VOID WINAPI DosInt21h(LPWORD Stack)
{
DPRINT1("DOS Function INT 0x21, AH = %xh, AL = %xh NOT IMPLEMENTED!\n",
getAH(), getAL());
setAL(0); // Some functions expect AL to be 0 when it's not supported.
Stack[STACK_FLAGS] |= EMULATOR_FLAG_CF;
}
}