From c37e40a0780a2f4a4e69d5b91ff144b3fa4047c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 30 Nov 2009 16:36:28 +0000 Subject: [PATCH] * Didn't notice that AdjustSize() was called from somewhere else, too. This fixes the haiku_loader build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34386 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../partitioning_systems/intel/PartitionMapParser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add-ons/kernel/partitioning_systems/intel/PartitionMapParser.cpp b/src/add-ons/kernel/partitioning_systems/intel/PartitionMapParser.cpp index 20e676ec09..a758d2a59b 100644 --- a/src/add-ons/kernel/partitioning_systems/intel/PartitionMapParser.cpp +++ b/src/add-ons/kernel/partitioning_systems/intel/PartitionMapParser.cpp @@ -215,10 +215,10 @@ PartitionMapParser::_ParseExtended(PrimaryPartition* primary, off_t offset) } if (partition == NULL) break; -#ifdef _BOOT_MODE - // work-around potential BIOS problems - partition->AdjustSize(fSessionSize); -#endif + + // work-around potential BIOS/OS problems + partition->FitSizeToSession(fSessionSize); + // check the partition's location if (!partition->CheckLocation(fSessionSize)) { error = B_BAD_DATA;