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:
parent
3a199128de
commit
1fa400cd92
@ -243,7 +243,7 @@ DiskBootMethod::IsBootPartition(KPartition* partition, bool& foundForSure)
|
||||
if (!fBootVolume.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, false)) {
|
||||
// the simple case: we can just boot from the selected boot
|
||||
// device
|
||||
if (partition->Offset() == fBootVolume.GetBool(
|
||||
if (partition->Offset() == fBootVolume.GetInt64(
|
||||
BOOT_VOLUME_PARTITION_OFFSET, 0)) {
|
||||
foundForSure = true;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user