summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-24 15:58:26 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-24 15:58:26 +0100
commitcb62d65a75fc321cb7e3448fb0a695b867706dd5 (patch)
treeb7b711331f8048788430438cdde20e8b85a22a86 /src
parentb11554f611bfa0eab0887a4c58f747df30fa30c3 (diff)
Search for a partition where Vista usually creates the first one even if the user don't enable Vista search
Diffstat (limited to 'src')
-rw-r--r--src/godmode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/godmode.c b/src/godmode.c
index 010b7fa..c97f4b1 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -419,8 +419,10 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
{
min_location=disk_car->sector_size;
location_boundary=disk_car->sector_size;
- /* sometime users choose Intel instead of GPT */
- try_offset_nbr=tab_insert(try_offset,2*disk_car->sector_size+16384,try_offset_nbr);
+ /* sometimes users choose Intel instead of GPT */
+ try_offset_nbr=tab_insert(try_offset, 2*disk_car->sector_size+16384, try_offset_nbr);
+ /* sometimes users don't choose Vista by mistake */
+ try_offset_nbr=tab_insert(try_offset, 2048*512, try_offset_nbr);
}
else if(disk_car->arch==&arch_mac)
{