Partition::AddChild() created its child with the wrong file descriptor; i.e.
it passed partition_data::volume which used to be the correct descriptor earlier, but is now unused in the boot loader partition support. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4643 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -158,7 +158,7 @@ Partition::Type() const
|
||||
Partition *
|
||||
Partition::AddChild()
|
||||
{
|
||||
Partition *child = new Partition(volume);
|
||||
Partition *child = new Partition(fFD);
|
||||
if (child == NULL)
|
||||
return NULL;
|
||||
|
||||
@@ -271,7 +271,7 @@ create_child_partition(partition_id id, int32 index, partition_id childID)
|
||||
|
||||
// we cannot do anything with the child here, because it was not
|
||||
// yet initialized by the partition module.
|
||||
TRACE(("new child partition!"));
|
||||
TRACE(("new child partition!\n"));
|
||||
|
||||
return child;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user