193 |
|
|
194 |
|
// Partition map block found, Apple HFS partition? |
195 |
|
if (strcmp((char *)(map + 48), "Apple_HFS") == 0) { |
196 |
< |
info.start_byte = ntohl(((uint32 *)map)[2]) << 9; |
197 |
< |
D(bug(" HFS partition found at %d, %d blocks\n", info.start_byte, ntohl(((uint32 *)map)[3]))); |
196 |
> |
info.start_byte = (loff_t)((map[8] << 24) | (map[9] << 16) | (map[10] << 8) | map[11]) << 9; |
197 |
> |
uint32 num_blocks = (map[12] << 24) | (map[13] << 16) | (map[14] << 8) | map[15]; |
198 |
> |
D(bug(" HFS partition found at %d, %d blocks\n", info.start_byte, num_blocks)); |
199 |
|
break; |
200 |
|
} |
201 |
|
} |