From 65bf7e89c93e56f7d292278899c4aebf35df0923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 3 Oct 2006 15:26:40 +0000 Subject: [PATCH] Fixed typo in the BIOS work-around that should prevent booting from Intel partitions at all. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18991 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/partitioning_systems/intel/PartitionMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/partitioning_systems/intel/PartitionMap.cpp b/src/add-ons/kernel/partitioning_systems/intel/PartitionMap.cpp index 0fd0cbb5d8..1467c52dcc 100644 --- a/src/add-ons/kernel/partitioning_systems/intel/PartitionMap.cpp +++ b/src/add-ons/kernel/partitioning_systems/intel/PartitionMap.cpp @@ -220,7 +220,7 @@ Partition::AdjustSize(off_t sessionSize) // To work around buggy (or older) BIOS, we shrink the partition size to // always fit into its session - this should improve detection of boot // partitions (see bug #238 for more information) - if (sessionSize > fOffset + fSize) + if (sessionSize < fOffset + fSize) fSize = sessionSize - fOffset; } #endif