From 4e083621e335c5eb3500fd8ae5e093d86087fd5c Mon Sep 17 00:00:00 2001 From: planetbeing Date: Sun, 27 Apr 2008 14:15:46 -0400 Subject: [PATCH] Changed primary detection algorithm so that it just uses the first HFS+/HFSX partition it finds. --- dmg/dmgfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmg/dmgfile.c b/dmg/dmgfile.c index d0d188c..d08e9c4 100644 --- a/dmg/dmgfile.c +++ b/dmg/dmgfile.c @@ -225,7 +225,7 @@ io_func* openDmgFilePartition(AbstractFile* abstractIn, int partition) { ((DMG*)toReturn->data)->offset = partitions[partition].pmPyPartStart * SECTOR_SIZE; } else { for(i = 0; i < numPartitions; i++) { - if(strcmp((char*)partitions[i].pmPartName, "Mac_OS_X") == 0) { + if(strcmp((char*)partitions[i].pmParType, "Apple_HFSX") == 0 || strcmp((char*)partitions[i].pmParType, "Apple_HFS") == 0) { ((DMG*)toReturn->data)->offset = partitions[i].pmPyPartStart * SECTOR_SIZE; break; }