BPartition::CanInitialize() now returns false if the size is 0.

* This should fix #9405; I cannot test it right now due to a missing
  CD-ROM.
This commit is contained in:
Axel Dörfler
2013-01-29 00:20:01 +01:00
parent 5a81662642
commit d0ecb6dafc
@@ -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);
}