Show an indicator for active partitons in the partition list.

svn path=/trunk/; revision=65587
This commit is contained in:
Eric Kohl 2014-12-07 22:28:12 +00:00
parent ebf69b050b
commit ce3e70b717
24 changed files with 30 additions and 28 deletions

View file

@ -1724,7 +1724,7 @@ MUI_STRING bgBGStrings[] =
{STRING_HDINFOPARTEXISTS,
"­  â¢êठ¤¨áª %lu (%I64u %s), ˆ§¢®¤=%hu, ˜¨­ =%hu, Ž“=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %s¢¨¤ %-3u%s %6lu %s"},
"%c%c %c %s¢¨¤ %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s â¢êठ¤¨áª %lu (ˆ§¢®¤=%hu, ˜¨­ =%hu, Ž“=%hu) ­  %S"},
{STRING_HDDINFOUNK6,

View file

@ -1708,7 +1708,7 @@ MUI_STRING bnBDStrings[] =
{STRING_HDINFOPARTEXISTS,
"on Harddisk %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1717,7 +1717,7 @@ MUI_STRING csCZStrings[] =
{STRING_HDINFOPARTEXISTS,
"na harddisku %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTyp %-3u%s %6lu %s"},
"%c%c %c %sTyp %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu) na %S"},
{STRING_HDDINFOUNK6,

View file

@ -1714,7 +1714,7 @@ MUI_STRING deDEStrings[] =
{STRING_HDINFOPARTEXISTS,
"auf Festplatte %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTyp %-3u%s %6lu %s"},
"%c%c %c %sTyp %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Festplatte %lu (Port=%hu, Bus=%hu, Id=%hu) auf %S"},
{STRING_HDDINFOUNK6,

View file

@ -1736,7 +1736,7 @@ MUI_STRING elGRStrings[] =
{STRING_HDINFOPARTEXISTS,
"©«¦ ©¡¢ž¨æ ›å©¡¦ %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s ‘¡¢ž¨æª ›å©¡¦ª %lu (Port=%hu, Bus=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1708,7 +1708,7 @@ MUI_STRING enUSStrings[] =
{STRING_HDINFOPARTEXISTS,
"on Harddisk %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1718,7 +1718,7 @@ MUI_STRING esESStrings[] =
{STRING_HDINFOPARTEXISTS,
"en Disco duro %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTipo %-3u%s %6lu %s"},
"%c%c %c %sTipo %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Disco duro %lu (Port=%hu, Bus=%hu, Id=%hu) en %S"},
{STRING_HDDINFOUNK6,

View file

@ -1709,7 +1709,7 @@ MUI_STRING etEEStrings[] =
{STRING_HDINFOPARTEXISTS,
"Kävaketas %lu (%I64u %s), Port=%hu, Siin=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sT<73><54>p %-3u%s %6lu %s"},
"%c%c %c %sT<73><54>p %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Kävaketas %lu (Port=%hu, Siin=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1722,7 +1722,7 @@ MUI_STRING frFRStrings[] =
{STRING_HDINFOPARTEXISTS,
"sur Disque dur %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Disque dur %lu (Port=%hu, Bus=%hu, Id=%hu) sur %S"},
{STRING_HDDINFOUNK6,

View file

@ -1710,7 +1710,7 @@ MUI_STRING heILStrings[] =
{STRING_HDINFOPARTEXISTS,
"on Harddisk %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1713,7 +1713,7 @@ MUI_STRING itITStrings[] =
{STRING_HDINFOPARTEXISTS,
"su Harddisk %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTipo %-3u%s %6lu %s"},
"%c%c %c %sTipo %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu) su %S"},
{STRING_HDDINFOUNK6,

View file

@ -1712,7 +1712,7 @@ MUI_STRING jaJPStrings[] =
{STRING_HDINFOPARTEXISTS,
"on Ê°ÄÞÃÞ¨½¸ %lu (%I64u %s), Îß°Ä=%hu, ÊÞ½=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %s서侮 %-3u%s %6lu %s"},
"%c%c %c %s서侮 %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Ê°ÄÞÃÞ¨½¸ %lu (Îß°Ä=%hu, ÊÞ½=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1719,7 +1719,7 @@ MUI_STRING ltLTStrings[] =
{STRING_HDINFOPARTEXISTS,
"on Harddisk %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1757,7 +1757,7 @@ MUI_STRING nlNLStrings[] =
{STRING_HDINFOPARTEXISTS,
"op Schijf %lu (%I64u %s), Poort=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Schijf %lu (Poort=%hu, Bus=%hu, Id=%hu) op %S"},
{STRING_HDDINFOUNK6,

View file

@ -1719,7 +1719,7 @@ MUI_STRING plPLStrings[] =
{STRING_HDINFOPARTEXISTS,
"na Dysku Twardym %lu (%I64u %s), Port=%hu, Szyna=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %s09Typ %-3u%s %6lu %s"},
"%c%c %c %s09Typ %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Dysk Twardy %lu (Port=%hu, Szyna=%hu, Id=%hu) na %S"},
{STRING_HDDINFOUNK6,

View file

@ -1748,7 +1748,7 @@ MUI_STRING ptBRStrings[] =
{STRING_HDINFOPARTEXISTS,
"em Disco %lu (%I64u %s), Porta=%hu, Barramento=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTipo %-3u%s %6lu %s"},
"%c%c %c %sTipo %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Disco %lu (Porta=%hu, Barramento=%hu, Id=%hu) em %S"},
{STRING_HDDINFOUNK6,

View file

@ -1786,7 +1786,7 @@ MUI_STRING roROStrings[] =
{STRING_HDINFOPARTEXISTS,
"de pe Discul %lu (%I64u %s), Port=%hu, Magistrala=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTip %-3u%s %6lu %s"},
"%c%c %c %sTip %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Discul %lu (Port=%hu, Magistrala=%hu, Id=%hu) de tip %S"},
{STRING_HDDINFOUNK6,

View file

@ -1713,7 +1713,7 @@ MUI_STRING ruRUStrings[] =
{STRING_HDINFOPARTEXISTS,
"­  ¦¥á⪮¬ ¤¨áª¥ %lu (%I64u %s), <20>®àâ=%hu, ˜¨­ =%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %s‡ ¯¨áì %-3u%s %6lu %s"},
"%c%c %c %s‡ ¯¨áì %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s †¥á⪨© ¤¨áª %lu (<28>®àâ=%hu, ˜¨­ =%hu, Id=%hu) ­  %S"},
{STRING_HDDINFOUNK6,

View file

@ -1723,7 +1723,7 @@ MUI_STRING skSKStrings[] =
{STRING_HDINFOPARTEXISTS,
"na pevnom disku %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %styp %-3u%s %6lu %s"},
"%c%c %c %styp %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s pevnì disk %lu (Port=%hu, Bus=%hu, Id=%hu) na %S"},
{STRING_HDDINFOUNK6,

View file

@ -1715,7 +1715,7 @@ MUI_STRING sqALStrings[] =
{STRING_HDINFOPARTEXISTS,
"on Harddisku %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTipi %-3u%s %6lu %s"},
"%c%c %c %sTipi %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Harddisku %lu (Port=%hu, Bus=%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1718,7 +1718,7 @@ MUI_STRING svSEStrings[] =
{STRING_HDINFOPARTEXISTS,
"p† H†rddisk %lu (%I64u %s), Port=%hu, Bus=%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sTyp %-3u%s %6lu %s"},
"%c%c %c %sTyp %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s H†rddisk %lu (Port=%hu, Bus=%hu, Id=%hu) p† %S"},
{STRING_HDDINFOUNK6,

View file

@ -1696,7 +1696,7 @@ MUI_STRING trTRStrings[] =
{STRING_HDINFOPARTEXISTS,
"šzerinde: Sƒbit Disk %lu (%I64u %s), GiriŸ=%hu, Veriyolu=%hu, Kimlik=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sT<73>r %-3u%s %6lu %s"},
"%c%c %c %sT<73>r %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s Sƒbit Disk %lu (GiriŸ=%hu, Veriyolu=%hu, Kimlik=%hu), %S <20>zerinde"},
{STRING_HDDINFOUNK6,

View file

@ -1718,7 +1718,7 @@ MUI_STRING ukUAStrings[] =
{STRING_HDINFOPARTEXISTS,
"­  †®àá⪮¬ã ¤¨áªã %lu (%I64u %s), <20>®àâ=%hu, ˜¨­ =%hu, Id=%hu (%wZ)."},
{STRING_HDDINFOUNK5,
"%c%c %sType %-3u%s %6lu %s"},
"%c%c %c %sType %-3u%s %6lu %s"},
{STRING_HDINFOPARTSELECT,
"%6lu %s †®àá⪨© ¤¨áª %lu (<28>®àâ=%hu, ˜¨­ =%hu, Id=%hu) on %S"},
{STRING_HDDINFOUNK6,

View file

@ -1556,6 +1556,7 @@ PrintPartitionData(
MUIGetString(STRING_HDDINFOUNK5),
(PartEntry->DriveLetter == 0) ? '-' : PartEntry->DriveLetter,
(PartEntry->DriveLetter == 0) ? '-' : ':',
PartEntry->BootIndicator ? '*' : ' ',
PartEntry->LogicalPartition ? " " : "",
PartEntry->PartitionType,
PartEntry->LogicalPartition ? "" : " ",
@ -1565,9 +1566,10 @@ PrintPartitionData(
else
{
sprintf(LineBuffer,
"%c%c %s%-24s%s %6lu %s",
"%c%c %c %s%-24s%s %6lu %s",
(PartEntry->DriveLetter == 0) ? '-' : PartEntry->DriveLetter,
(PartEntry->DriveLetter == 0) ? '-' : ':',
PartEntry->BootIndicator ? '*' : ' ',
PartEntry->LogicalPartition ? " " : "",
PartType,
PartEntry->LogicalPartition ? "" : " ",
@ -2383,7 +2385,7 @@ DPRINT1("Convert existing partition entry\n");
PartEntry->FormatState = Unformatted;
PartEntry->AutoCreate = AutoCreate;
PartEntry->New = TRUE;
PartEntry->BootIndicator = FALSE; /* FIXME */
PartEntry->BootIndicator = FALSE;
DPRINT1("First Sector: %I64u\n", PartEntry->StartSector.QuadPart);
DPRINT1("Last Sector: %I64u\n", PartEntry->StartSector.QuadPart + PartEntry->SectorCount.QuadPart - 1);
@ -2418,7 +2420,7 @@ DPRINT1("Total Sectors: %I64u\n", NewPartEntry->SectorCount.QuadPart);
NewPartEntry->New = TRUE;
NewPartEntry->FormatState = Unformatted;
NewPartEntry->BootIndicator = FALSE; /* FIXME */
NewPartEntry->BootIndicator = FALSE;
PartEntry->StartSector.QuadPart = NewPartEntry->StartSector.QuadPart + NewPartEntry->SectorCount.QuadPart;
PartEntry->SectorCount.QuadPart -= (PartEntry->StartSector.QuadPart - NewPartEntry->StartSector.QuadPart);
@ -2500,7 +2502,7 @@ DPRINT1("Convert existing partition entry\n");
PartEntry->FormatState = Formatted;
PartEntry->AutoCreate = FALSE;
PartEntry->New = FALSE;
PartEntry->BootIndicator = FALSE; /* FIXME */
PartEntry->BootIndicator = FALSE;
if (PartEntry->StartSector.QuadPart < 1450560)
{
@ -2543,7 +2545,7 @@ DPRINT1("Add new partition entry\n");
NewPartEntry->New = FALSE;
NewPartEntry->FormatState = Formatted;
NewPartEntry->BootIndicator = FALSE; /* FIXME */
NewPartEntry->BootIndicator = FALSE;
if (NewPartEntry->StartSector.QuadPart < 1450560)
{