summaryrefslogtreecommitdiffstats
path: root/src/godmode.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-01-07 20:52:33 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-01-07 20:52:33 +0100
commit2c4b6dcbb956f43b07ecb0d1f6ab661c934693bc (patch)
treef07d624b136400bb6b0336af74ee548089655ed4 /src/godmode.c
parent26f724eacd72e64f48db2aa6dda6718b6c446a6b (diff)
Fix exFAT recovery using backup boot sector
Diffstat (limited to 'src/godmode.c')
-rw-r--r--src/godmode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/godmode.c b/src/godmode.c
index 2c12865..640d1c0 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -578,8 +578,8 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
{
if((disk_car->arch==&arch_i386 &&
((start.sector==13 && (start.head<=2 || fast_mode>1)) ||
- (search_vista_part>0 && search_location%(2048*512)==(13-1)*512))) ||
- (disk_car->arch!=&arch_i386 && (search_location%location_boundary==(13-1)*512)))
+ (search_vista_part>0 && search_location%(2048*512)==(13-1)*disk_car->sector_size))) ||
+ (disk_car->arch!=&arch_i386 && (search_location%location_boundary==(13-1)*disk_car->sector_size)))
res=search_EXFAT_backup(buffer_disk, disk_car, partition);
test_nbr++;
}