aboutsummaryrefslogtreecommitdiffstats
path: root/dos/syslinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'dos/syslinux.c')
-rw-r--r--dos/syslinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dos/syslinux.c b/dos/syslinux.c
index 31797075..1cdf418b 100644
--- a/dos/syslinux.c
+++ b/dos/syslinux.c
@@ -437,7 +437,7 @@ void lock_device(int level)
if (!hard_lock) {
/* Assume hierarchial "soft" locking supported */
- while ((lock_level >> 8) < level) {
+ while (lock_level < level) {
int new_level = lock_level + 1;
err = do_lock(new_level);
if (err) {