From ba466dbba3effc0748f0301cf01b4fd72baabea9 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sun, 20 Oct 2013 15:01:28 +0000 Subject: [PATCH] [NTVDM] Implement the "Get Default Drive" DOS command. svn path=/branches/ntvdm/; revision=60724 --- subsystems/ntvdm/dos.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/subsystems/ntvdm/dos.c b/subsystems/ntvdm/dos.c index 01c1a12ddf8..837ae25cfc0 100644 --- a/subsystems/ntvdm/dos.c +++ b/subsystems/ntvdm/dos.c @@ -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: {