The partition offset is int64, of course, not bool. Sometimes one wishes,
C++ had a stricter typing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -243,7 +243,7 @@ DiskBootMethod::IsBootPartition(KPartition* partition, bool& foundForSure)
|
|||||||
if (!fBootVolume.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, false)) {
|
if (!fBootVolume.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, false)) {
|
||||||
// the simple case: we can just boot from the selected boot
|
// the simple case: we can just boot from the selected boot
|
||||||
// device
|
// device
|
||||||
if (partition->Offset() == fBootVolume.GetBool(
|
if (partition->Offset() == fBootVolume.GetInt64(
|
||||||
BOOT_VOLUME_PARTITION_OFFSET, 0)) {
|
BOOT_VOLUME_PARTITION_OFFSET, 0)) {
|
||||||
foundForSure = true;
|
foundForSure = true;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user