From a4bc22884cb12751b3f65c6a1a963d0d650431f5 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 4 Jun 2007 16:54:11 +0000 Subject: [PATCH] Use the largest possible lastdrive value ('Z',26) for the initial CDS. This allows device=f:\foo.sys to work. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1335 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/main.c b/kernel/main.c index 4d329c4..8364d74 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -302,7 +302,9 @@ STATIC void init_kernel(void) /* Do first initialization of system variable buffers so that */ /* we can read config.sys later. */ - LoL->lastdrive = Config.cfgLastdrive; + + /* use largest possible value for the initial CDS */ + LoL->lastdrive = 26; /* init_device((struct dhdr FAR *)&blk_dev, NULL, 0, &ram_top); */ blk_dev.dh_name[0] = dsk_init();