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
This commit is contained in:
Bart Oldeman 2007-06-04 16:54:11 +00:00
parent 3f1938d8e8
commit a4bc22884c

View File

@ -302,7 +302,9 @@ STATIC void init_kernel(void)
/* Do first initialization of system variable buffers so that */ /* Do first initialization of system variable buffers so that */
/* we can read config.sys later. */ /* 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); */ /* init_device((struct dhdr FAR *)&blk_dev, NULL, 0, &ram_top); */
blk_dev.dh_name[0] = dsk_init(); blk_dev.dh_name[0] = dsk_init();