From: Ben Gras Date: Wed, 30 May 2007 16:13:36 +0000 (+0000) Subject: Assume bios parameters are wrong/missing if any of the parameters are 0. X-Git-Tag: v3.1.3a^2~7 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=3a3f4496d9829cc4c4080b8c6f5fb5247f35d85c;p=minix.git Assume bios parameters are wrong/missing if any of the parameters are 0. --- diff --git a/drivers/at_wini/at_wini.c b/drivers/at_wini/at_wini.c index 5258a97ca..7c3f9ced1 100644 --- a/drivers/at_wini/at_wini.c +++ b/drivers/at_wini/at_wini.c @@ -1026,7 +1026,7 @@ PRIVATE int w_identify() #endif } - if (wn->lcylinders == 0) { + if (wn->lcylinders == 0 || wn->lheads == 0 || wn->lsectors == 0) { /* No BIOS parameters? Then make some up. */ wn->lcylinders = wn->pcylinders; wn->lheads = wn->pheads;