aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2010-03-07 20:10:18 -0800
committerPierre-Alexandre Meyer <pierre@mouraf.org>2010-03-07 20:10:18 -0800
commit1f1e779b191dc3e5c117cbc915e418e7a07034cd (patch)
tree1a8e73edd9e8da691b45af180489edf9df08bf3d
parentcdfd4a411a53fc128591c1fe2b93580cf210c1da (diff)
downloadhdt-pierre-fixes-for-3.86.tar.gz
hdt-pierre-fixes-for-3.86.tar.xz
hdt-pierre-fixes-for-3.86.zip
disk.c32: add disk geometry checkfixes-for-3.86
Make sure the CHS geometry is valid before displaying disk information to avoid showing garbage. Debugging-info-by: Gert Hulselmans <gerth@zytor.com> Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
-rw-r--r--com32/modules/disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/disk.c b/com32/modules/disk.c
index e94a36bf..62914f47 100644
--- a/com32/modules/disk.c
+++ b/com32/modules/disk.c
@@ -33,7 +33,7 @@ int main(int argc __attribute__ (( unused )),
err = get_drive_parameters(d);
/* Do not print output when drive does not exists */
- if (err == -1)
+ if (err == -1 || !d->cbios)
continue;
if (err) {