[haiku-commits] r41986 - haiku/trunk/src/kits/storage/disk_device

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 7 Jun 2011 00:23:45 +0200 (CEST)

Author: korli
Date: 2011-06-07 00:23:44 +0200 (Tue, 07 Jun 2011)
New Revision: 41986
Changeset: https://dev.haiku-os.org/changeset/41986
Ticket: https://dev.haiku-os.org/ticket/7572

Modified:
   haiku/trunk/src/kits/storage/disk_device/Partition.cpp
Log:
Second try at fixing #7572 (after r41842). Please review.


Modified: haiku/trunk/src/kits/storage/disk_device/Partition.cpp
===================================================================
--- haiku/trunk/src/kits/storage/disk_device/Partition.cpp      2011-06-06 
20:37:43 UTC (rev 41985)
+++ haiku/trunk/src/kits/storage/disk_device/Partition.cpp      2011-06-06 
22:23:44 UTC (rev 41986)
@@ -1176,7 +1176,7 @@
 bool
 BPartition::CanInitialize(const char* diskSystem) const
 {
-       return fDelegate && fDelegate->CanInitialize(diskSystem);
+       return IsDevice() || (fDelegate && 
fDelegate->CanInitialize(diskSystem));
 }
 
 


Other related posts: