diff options
| author | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2010-03-07 20:10:18 -0800 |
|---|---|---|
| committer | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2010-03-07 20:10:18 -0800 |
| commit | 1f1e779b191dc3e5c117cbc915e418e7a07034cd (patch) | |
| tree | 1a8e73edd9e8da691b45af180489edf9df08bf3d /com32 | |
| parent | cdfd4a411a53fc128591c1fe2b93580cf210c1da (diff) | |
| download | syslinux-1f1e779b191dc3e5c117cbc915e418e7a07034cd.tar.gz | |
disk.c32: add disk geometry check
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>
Diffstat (limited to 'com32')
| -rw-r--r-- | com32/modules/disk.c | 2 |
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) { |
