From dde7ba779176f0634822afb6944c797984290f3e Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 14 Jul 2003 19:17:01 +0000 Subject: [PATCH] There aren't lastdrive open file handles but a maximum of 20. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@638 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/main.c b/kernel/main.c index 29deeba..b1b5db8 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -250,7 +250,7 @@ STATIC void init_kernel(void) /* Close all (device) files */ - for (i = 0; i < LoL->lastdrive; i++) + for (i = 0; i < 20; i++) close(i); /* and do final buffer allocation. */