Show an error message if formatting a partition fails.
Based on patch by mna.
CORE-7969 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=68388
This commit is contained in:
Eric Kohl 2015-07-11 12:40:34 +00:00
parent cf58e13f77
commit e2dc21346a
25 changed files with 163 additions and 1 deletions

View file

@ -70,6 +70,7 @@ typedef enum
ERROR_INSUFFICIENT_PARTITION_SIZE,
ERROR_PARTITION_TABLE_FULL,
ERROR_ONLY_ONE_EXTENDED,
ERROR_FORMATTING_PARTITION,
ERROR_LAST_ERROR_CODE
} ERROR_NUMBER;

View file

@ -2899,7 +2899,7 @@ FormatPartitionPage(PINPUT_RECORD Ir)
if (!NT_SUCCESS(Status))
{
DPRINT1("FormatPartition() failed with status 0x%08lx\n", Status);
/* FIXME: show an error dialog */
MUIDisplayError(ERROR_FORMATTING_PARTITION, Ir, POPUP_WAIT_ANY_KEY, PathBuffer);
return QUIT_PAGE;
}

View file

@ -1508,6 +1508,13 @@ MUI_ERROR bgBGErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1495,6 +1495,13 @@ MUI_ERROR bnBDErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1503,6 +1503,13 @@ MUI_ERROR csCZErrorEntries[] =
"\n"
" * PokraŸujte stisknut¡m libovoln kl vesy."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1499,6 +1499,13 @@ MUI_ERROR deDEErrorEntries[] =
"\n"
" * Eine beliebige Taste zum Fortsetzen dr<64>cken."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1512,6 +1512,13 @@ MUI_ERROR elGRErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1495,6 +1495,13 @@ MUI_ERROR enUSErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1503,6 +1503,13 @@ MUI_ERROR esESErrorEntries[] =
"\n"
" * Presione una tecla para continuar."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1493,6 +1493,13 @@ MUI_ERROR etEEErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1508,6 +1508,13 @@ MUI_ERROR frFRErrorEntries[] =
"\n"
" * Appuyer sur une touche pour continuer."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1496,6 +1496,13 @@ MUI_ERROR heILErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1503,6 +1503,13 @@ MUI_ERROR itITErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1497,6 +1497,13 @@ MUI_ERROR jaJPErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1505,6 +1505,13 @@ MUI_ERROR ltLTErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1535,6 +1535,13 @@ MUI_ERROR nlNLErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1505,6 +1505,13 @@ MUI_ERROR plPLErrorEntries[] =
"\n"
" * Naci<63>nij dowolny klawisz, aby kontynuowa†."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1533,6 +1533,13 @@ MUI_ERROR ptBRErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1566,6 +1566,13 @@ MUI_ERROR roROErrorEntries[] =
"\n"
" * Tastaîi pentru a continua."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1496,6 +1496,13 @@ MUI_ERROR ruRUErrorEntries[] =
"\n"
" * <20> ¦¬¨â¥ «î¡ãî ª« ¢¨èã ¤«ï ¯à®¤®«¦¥­¨ï."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1507,6 +1507,13 @@ MUI_ERROR skSKErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1500,6 +1500,13 @@ MUI_ERROR sqALErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1503,6 +1503,13 @@ MUI_ERROR svSEErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1483,6 +1483,13 @@ MUI_ERROR trTRErrorEntries[] =
"\n"
" * S<>rd<72>rmek i‡in bir d<>§meye bas<61>n<EFBFBD>z."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL

View file

@ -1503,6 +1503,13 @@ MUI_ERROR ukUAErrorEntries[] =
"\n"
" * Press any key to continue."
},
{
//ERROR_FORMATTING_PARTITION,
"Setup is unable to format the partition:\n"
" %S\n"
"\n"
"ENTER = Reboot computer"
},
{
NULL,
NULL