:: commit 9109b407565b09c0349e30cafcc1d0e7f0100d87

mintsuki <mintsuki@protonmail.com> — 2024-05-07 19:03

parents: 71cfe73d67

disk: BIOS: Fix wrong logical operator from 9476b3dfaa35a77329686c6e1e10690c6e1a1855

diff --git a/common/drivers/disk.s2.c b/common/drivers/disk.s2.c
index b8f5a64c..e7016c06 100644
--- a/common/drivers/disk.s2.c
+++ b/common/drivers/disk.s2.c
@@ -242,7 +242,7 @@ void disk_create_index(void) {
             dpte = (void *)rm_desegment(drive_params.dpte_seg, drive_params.dpte_off);
             if ((dpte->control_port & 0xff00) != 0xa000) {
                 // Check for removable (5) or ATAPI (6)
-                is_removable = is_removable && ((dpte->flags & (1 << 5)) || (dpte->flags & (1 << 6)));
+                is_removable = is_removable || ((dpte->flags & (1 << 5)) || (dpte->flags & (1 << 6)));
             }
         }
 
tab: 248 wrap: offon