From e5e5ddc13abf6ba11b9f16be312b75e41dbb6421 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 14 Jun 2003 00:12:12 +0000 Subject: [PATCH] ep_scan_partition(): Removed erroneous check for cookie (it's unused here), and fixed child index counting. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3511 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/partitioning_systems/intel/intel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/partitioning_systems/intel/intel.cpp b/src/add-ons/kernel/partitioning_systems/intel/intel.cpp index 4b54143751..1a6fc99b3f 100644 --- a/src/add-ons/kernel/partitioning_systems/intel/intel.cpp +++ b/src/add-ons/kernel/partitioning_systems/intel/intel.cpp @@ -754,7 +754,7 @@ status_t ep_scan_partition(int fd, partition_data *partition, void *cookie) { // check parameters - if (fd < 0 || !partition || !cookie || !partition->cookie) + if (fd < 0 || !partition || !partition->cookie) return B_ERROR; partition_data *parent = get_parent_partition(partition->id); if (!parent) @@ -773,6 +773,7 @@ ep_scan_partition(int fd, partition_data *partition, void *cookie) LogicalPartition *logical = primary->LogicalPartitionAt(i); partition_data *child = create_child_partition(partition->id, index, -1); + index++; if (!child) { // something went wrong error = B_ERROR;