Skip to content

Commit

Permalink
BPartition::CanInitialize() now returns false if the size is 0.
Browse files Browse the repository at this point in the history
* This should fix #9405; I cannot test it right now due to a missing
  CD-ROM.
  • Loading branch information
axeld committed Jan 28, 2013
1 parent 5a81662 commit d0ecb6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kits/storage/disk_device/Partition.cpp
Expand Up @@ -1177,6 +1177,8 @@ BPartition::BPartition::IsSubSystem(const char* diskSystem) const
bool
BPartition::CanInitialize(const char* diskSystem) const
{
if (Size() == 0 || BlockSize() == 0)
return false;
return fDelegate && fDelegate->CanInitialize(diskSystem);
}

Expand Down

0 comments on commit d0ecb6d

Please sign in to comment.