- if partition cannot be selected, let user create partition themselves

- autopartitioning still needs to be done
See issue #2593 for more details.

svn path=/trunk/; revision=28576
This commit is contained in:
Johannes Anderwald 2007-08-26 18:19:23 +00:00
parent aad59dfc19
commit 6085c5e625
3 changed files with 11 additions and 10 deletions

View file

@ -1387,11 +1387,11 @@ SelectPartitionPage(PINPUT_RECORD Ir)
if (IsUnattendedSetup)
{
SelectPartition(PartitionList,
UnattendDestinationDiskNumber,
UnattendDestinationPartitionNumber);
if (SelectPartition(PartitionList, UnattendDestinationDiskNumber, UnattendDestinationPartitionNumber))
{
return(SELECT_FILE_SYSTEM_PAGE);
}
}
while(TRUE)
{

View file

@ -1543,7 +1543,7 @@ DrawPartitionList (PPARTLIST List)
}
VOID
DWORD
SelectPartition(PPARTLIST List, ULONG DiskNumber, ULONG PartitionNumber)
{
PDISKENTRY DiskEntry;
@ -1554,7 +1554,7 @@ SelectPartition(PPARTLIST List, ULONG DiskNumber, ULONG PartitionNumber)
/* Check for empty disks */
if (IsListEmpty (&List->DiskListHead))
return;
return FALSE;
/* Check for first usable entry on next disk */
Entry1 = List->CurrentDisk->ListEntry.Flink;
@ -1576,15 +1576,16 @@ SelectPartition(PPARTLIST List, ULONG DiskNumber, ULONG PartitionNumber)
List->CurrentDisk = DiskEntry;
List->CurrentPartition = PartEntry;
DrawPartitionList (List);
return;
return TRUE;
}
}
Entry2 = Entry2->Flink;
}
return;
return FALSE;
}
Entry1 = Entry1->Flink;
}
return FALSE;
}

View file

@ -188,7 +188,7 @@ DestroyPartitionList (PPARTLIST List);
VOID
DrawPartitionList (PPARTLIST List);
VOID
DWORD
SelectPartition(PPARTLIST List, ULONG DiskNumber, ULONG PartitionNumber);
BOOL