summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher/ipodpatcher.c
diff options
context:
space:
mode:
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)
255 255
256 /* Check that the partition table looks like an ipod: 256 /* Check that the partition table looks like an ipod:
257 1) Partition 1 is of type 0 (Empty) but isn't empty. 257 1) Partition 1 is of type 0 (Empty) but isn't empty.
258 2) Partition 2 is of type 0xb (winpod) or -1 (macpod) 258 2) Partition 2 is of type 0xb or 0xc (winpod) or -1 (macpod)
259 */ 259 */
260 if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) || 260 if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) ||
261 ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != -1))) { 261 ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != 0xc) &&
262 (ipod->pinfo[1].type != -1))) {
262 if (!silent) fprintf(stderr,"[ERR] Partition layout is not an ipod\n"); 263 if (!silent) fprintf(stderr,"[ERR] Partition layout is not an ipod\n");
263 return -1; 264 return -1;
264 } 265 }