From 0bfed6553d08131fd8e0bd725642ff8509a2a1d4 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 1 Jul 2023 15:16:46 +0200 Subject: Windows: Fix formatting issue during volume creation by using /Y for format.com and specifying removal parameter in FormatEx The usage of /Y parameter in format.com simplifies the logic and makes the code robust since we don't need to send \n to the format.com process. Specifying RemovableMedia parameter to FormatEx fixes its failure in Windows 10 and later to perform quick format. This is also more adequate since we are mounting the volume as removable media for the formatting process. We also add better error management in order to display adequate error message to the user in case of failure --- Translations/Language.pl.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Translations/Language.pl.xml') diff --git a/Translations/Language.pl.xml b/Translations/Language.pl.xml index a766b0a9..a73536be 100644 --- a/Translations/Language.pl.xml +++ b/Translations/Language.pl.xml @@ -1621,6 +1621,8 @@ Ścieżka EMV jest nieprawidłowa. Nie można utworzyć pliku klucza z danych karty EMV.\n\nBrak jednego z następujących elementów:\n- Certyfikatu klucza publicznego ICC.\n- Certyfikatu klucza publicznego wydawcy.\n- Danych CPCL. Brak karty w czytniku.\n\nUpewnij się, że karta jest prawidłowo włożona. + Windows format.com command failed to format the volume as NTFS/exFAT/ReFS: Error 0x%.8X.\n\nFalling back to using Windows FormatEx API. + Windows FormatEx API failed to format the volume as NTFS/exFAT/ReFS.\n\nFailure status = %s. -- cgit v1.2.3