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:
@@ -1177,6 +1177,8 @@ BPartition::BPartition::IsSubSystem(const char* diskSystem) const
|
|||||||
bool
|
bool
|
||||||
BPartition::CanInitialize(const char* diskSystem) const
|
BPartition::CanInitialize(const char* diskSystem) const
|
||||||
{
|
{
|
||||||
|
if (Size() == 0 || BlockSize() == 0)
|
||||||
|
return false;
|
||||||
return fDelegate && fDelegate->CanInitialize(diskSystem);
|
return fDelegate && fDelegate->CanInitialize(diskSystem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user