[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 20 Oct 2013 15:01:28 +0000 (15:01 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 20 Oct 2013 15:01:28 +0000 (15:01 +0000)
Implement the "Get Default Drive" DOS command.

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

subsystems/ntvdm/dos.c

index 01c1a12..837ae25 100644 (file)
@@ -1446,6 +1446,15 @@ VOID DosInt21h(LPWORD Stack)
             break;
         }
 
+        /* Get Default Drive */
+        case 0x19:
+        {
+            EmulatorSetRegister(EMULATOR_REG_AX,
+                                (Eax & 0xFFFFFF00) | CurrentDrive);
+
+            break;
+        }
+
         /* Set Disk Transfer Area */
         case 0x1A:
         {