Author: aandrejevic
Date: Sun Dec 1 00:17:46 2013
New Revision: 61161
URL:
http://svn.reactos.org/svn/reactos?rev=61161&view=rev
Log:
[NTVDM]
Set AL to 0 for unimplemented functions in INT 21h.
Modified:
branches/ntvdm/subsystems/ntvdm/dos.c
Modified: branches/ntvdm/subsystems/ntvdm/dos.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/dos.c?re…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] Sun Dec 1 00:17:46 2013
@@ -2419,6 +2419,8 @@
{
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;
}
}