summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/ipodpatcher.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-06-10 22:47:51 +0000
committerDave Chapman <dave@dchapman.com>2007-06-10 22:47:51 +0000
commit0fba85fe9ee8775aed331e4a9f60d91ac78ade9c (patch)
treed9e4a8c1b73451b686f2b3a943228f5922a448b7 /rbutil/ipodpatcher/ipodpatcher.c
parente94adbbc28bb07cce4694b6a211038822050314f (diff)
downloadrockbox-0fba85fe9ee8775aed331e4a9f60d91ac78ade9c.tar.gz
rockbox-0fba85fe9ee8775aed331e4a9f60d91ac78ade9c.tar.bz2
rockbox-0fba85fe9ee8775aed331e4a9f60d91ac78ade9c.zip
Accept both 0xb and 0xc as valid partition types for an ipod FAT32 partition. Some tools (e.g. fat32format) set the type to 0xc, and the Apple bootloader doesn't appear to care.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13614 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.c')
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c
index 1cc3343244..4d2bfa31a7 100644
--- a/rbutil/ipodpatcher/ipodpatcher.c
+++ b/rbutil/ipodpatcher/ipodpatcher.c
@@ -255,10 +255,11 @@ int read_partinfo(struct ipod_t* ipod, int silent)
/* Check that the partition table looks like an ipod:
1) Partition 1 is of type 0 (Empty) but isn't empty.
- 2) Partition 2 is of type 0xb (winpod) or -1 (macpod)
+ 2) Partition 2 is of type 0xb or 0xc (winpod) or -1 (macpod)
*/
if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) ||
- ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != -1))) {
+ ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != 0xc) &&
+ (ipod->pinfo[1].type != -1))) {
if (!silent) fprintf(stderr,"[ERR] Partition layout is not an ipod\n");
return -1;
}