[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 1 Dec 2013 00:17:46 +0000 (00:17 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 1 Dec 2013 00:17:46 +0000 (00:17 +0000)
Set AL to 0 for unimplemented functions in INT 21h.

svn path=/branches/ntvdm/; revision=61161

subsystems/ntvdm/dos.c

index 35e4c6f..88d4cd4 100644 (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;
         }
     }