aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall-frontend
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2013-05-05 20:53:36 +1000
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2013-05-05 20:53:36 +1000
commit55d6c9551e13b108947410d7bf50b6ba2c01b633 (patch)
tree992992cd5f8de4461829efd0c000c4b09c595412 /heimdall-frontend
parenta653a4800b12ac69e094a732930cdf73b3cc87aa (diff)
downloadexternal_heimdall-55d6c9551e13b108947410d7bf50b6ba2c01b633.zip
external_heimdall-55d6c9551e13b108947410d7bf50b6ba2c01b633.tar.gz
external_heimdall-55d6c9551e13b108947410d7bf50b6ba2c01b633.tar.bz2
Fixed two major bugs in libpit related functionality:
- Partitions were being excluded from flashing (and UI) if the block-count was zero. Instead this is now done using a new IsFlashable() method which checks if the partition name is not blank. - PitData::Pack() was packing the partition name where it should have been packing the "flash filename". This resulted in incorrect PIT files being flashed to the device.
Diffstat (limited to 'heimdall-frontend')
-rw-r--r--heimdall-frontend/Source/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/heimdall-frontend/Source/mainwindow.cpp b/heimdall-frontend/Source/mainwindow.cpp
index 281fd77..862dc5a 100644
--- a/heimdall-frontend/Source/mainwindow.cpp
+++ b/heimdall-frontend/Source/mainwindow.cpp
@@ -102,7 +102,7 @@ void MainWindow::UpdateUnusedPartitionIds(void)
{
const PitEntry *pitEntry = currentPitData.GetEntry(i);
- if (pitEntry->GetBlockCount() > 0 && strcmp(pitEntry->GetPartitionName(), "PIT") != 0 && strcmp(pitEntry->GetPartitionName(), "PT") != 0)
+ if (pitEntry->IsFlashable() && strcmp(pitEntry->GetPartitionName(), "PIT") != 0 && strcmp(pitEntry->GetPartitionName(), "PT") != 0)
unusedPartitionIds.append(pitEntry->GetIdentifier());
}