summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-10-13 14:39:28 +0000
committerDave Chapman <dave@dchapman.com>2009-10-13 14:39:28 +0000
commitc06bc788c95696cc73b66d2ad336e965ba0f4c05 (patch)
treeb243de7f019e3fac025771bf17a568ef54eb5efd /rbutil
parent71e79e7dacfe64511a8eabca87136e4a98b46114 (diff)
downloadrockbox-c06bc788c95696cc73b66d2ad336e965ba0f4c05.tar.gz
rockbox-c06bc788c95696cc73b66d2ad336e965ba0f4c05.tar.bz2
rockbox-c06bc788c95696cc73b66d2ad336e965ba0f4c05.zip
Fix Nano2G bootloader installation - no longer assume that the OSOS image is the first.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallipod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
index ca243a944c..117783890c 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
@@ -104,7 +104,7 @@ void BootloaderInstallIpod::installStage2(void)
emit done(true);
return;
}
- if(getmodel(&ipod,(ipod.ipod_directory[0].vers>>8)) < 0) {
+ if(getmodel(&ipod,(ipod.ipod_directory[ipod.ososimage].vers>>8)) < 0) {
emit logItem(tr("Unknown version number in firmware (%1)").arg(
ipod.ipod_directory[0].vers), LOGERROR);
emit done(true);