[SHELL32] Do not format the partition if it's a system drive

Implement a sanity check helper which determines if the partition is a system drive or not based on the %SystemDrive% environment variable, preventing the user from nuking accidentally the partition with ReactOS system files installed. :P

NOTE: This code serves as a temporary measure to prevent accidental formatting of the system drive. In the future most of this code has to be totally rewritten (and stopping syncing with WINE altogether) as well as FMIFS library code so that we're on par in terms of compatibility with Windows.
This commit is contained in:
George Bișoc 2021-03-07 14:24:16 +01:00
parent c2757032c8
commit 2ae526a039
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6
36 changed files with 179 additions and 1 deletions

View file

@ -35,6 +35,35 @@ typedef struct
EXTERN_C HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY hKey, LPCWSTR pszSubKey, UINT max_iface, IDataObject *pDataObj);
HPROPSHEETPAGE SH_CreatePropertySheetPage(LPCSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle);
/*
* TODO: In Windows the Shell doesn't know by itself if a drive is
* a system one or not but rather a packet message is being sent by
* FMIFS library code and further translated into specific packet
* status codes in the Shell, the packet being _FMIFS_PACKET_TYPE.
*
* With that being said, most of this code as well as FMIFS library code
* have to be refactored in order to comply with the way Windows works.
*
* See the enum definition for more details:
* https://github.com/microsoft/winfile/blob/master/src/fmifs.h#L23
*/
static BOOL
IsSystemDrive(PFORMAT_DRIVE_CONTEXT pContext)
{
WCHAR wszDriveLetter[6], wszSystemDrv[6];
wszDriveLetter[0] = pContext->Drive + L'A';
StringCchCatW(wszDriveLetter, _countof(wszDriveLetter), L":");
if (!GetEnvironmentVariableW(L"SystemDrive", wszSystemDrv, _countof(wszSystemDrv)))
return FALSE;
if (!wcsicmp(wszDriveLetter, wszSystemDrv))
return TRUE;
return FALSE;
}
static BOOL
GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNumberOfBytes)
{
@ -678,7 +707,16 @@ SHFormatDrive(HWND hwnd, UINT drive, UINT fmtID, UINT options)
Context.Result = FALSE;
Context.bFormattingNow = FALSE;
result = DialogBoxParamW(shell32_hInstance, MAKEINTRESOURCEW(IDD_FORMAT_DRIVE), hwnd, FormatDriveDlg, (LPARAM)&Context);
if (!IsSystemDrive(&Context))
{
result = DialogBoxParamW(shell32_hInstance, MAKEINTRESOURCEW(IDD_FORMAT_DRIVE), hwnd, FormatDriveDlg, (LPARAM)&Context);
}
else
{
result = SHFMT_ERROR;
ShellMessageBoxW(shell32_hInstance, hwnd, MAKEINTRESOURCEW(IDS_NO_FORMAT), MAKEINTRESOURCEW(IDS_NO_FORMAT_TITLE), MB_OK | MB_ICONWARNING);
TRACE("SHFormatDrive(): The provided drive for format is a system volume! Aborting...\n");
}
return result;
}

View file

@ -840,6 +840,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -845,6 +845,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Nelze zobrazit dialog Spustit soubor (interní chyba)"
IDS_RUNDLG_BROWSE_ERROR "Nelze zobrazit dialog Procházet (interní chyba)"

View file

@ -845,6 +845,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -840,6 +840,10 @@ BEGIN
IDS_FORMAT_WARNING "ACHTUNG: Das Formatieren löscht ALLE Daten auf dem Datenträger.\nKlicken Sie auf OK zum Formatieren. Klicken Sie auf ABBRECHEN zum Beenden."
IDS_FORMAT_COMPLETE "Formatieren abgeschlossen."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Anzeigen der Datei Ausführen Dialogbox nicht möglich (interner Fehler)"
IDS_RUNDLG_BROWSE_ERROR "Anzeigen der Durchsuchen Dialogbox nicht möglich (interner Fehler)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -848,6 +848,10 @@ BEGIN
IDS_FORMAT_WARNING "ADVERTENCIA: Al dar formato se borrarán TODOS los datos del disco.\nPara formatear, haga clic en Aceptar. Para salir, haga clic en Cancelar."
IDS_FORMAT_COMPLETE "Formato completo."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "No se pudo mostrar el diálogo Ejecutar (error interno)"
IDS_RUNDLG_BROWSE_ERROR "No se pudo mostrar el diálogo Examinar (error interno)"

View file

@ -846,6 +846,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Ei saanud kuvada Run faili dialoogiboksi (sisemine viga)"
IDS_RUNDLG_BROWSE_ERROR "Ei saanud kuvada Sirvi dialoogiboksi (sisemine viga)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "Attention: Le formatage effacera toutes les données présentes sur ce disque.\nPour formater ce disque, cliquez sur OK. Pour quitter, cliquez sur Annuler."
IDS_FORMAT_COMPLETE "Formatage terminé."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Impossible d'afficher la boîte de dialogue pour l'exécution d'un fichier (erreur interne)"
IDS_RUNDLG_BROWSE_ERROR "Impossible d'afficher la boîte de dialogue pour la recherche de fichier (erreur interne)"

View file

@ -841,6 +841,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "אתחול הושלם."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -834,6 +834,10 @@ BEGIN
IDS_SHUTDOWN_TITLE "शटडाउन"
IDS_SHUTDOWN_PROMPT "क्या आप शटडाउन करना चाहते हैं?"
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "रन फ़ाइल डायलॉग बॉक्स डिस्प्ले करने में असमर्थ (आंतरिक त्रुटि)"
IDS_RUNDLG_BROWSE_ERROR "ब्राउज़ डायलॉग बॉक्स डिस्प्ले करने में असमर्थ (आंतरिक त्रुटि)"

View file

@ -838,6 +838,10 @@ BEGIN
IDS_FORMAT_WARNING "FIGYELEM: A formázás MINDEN adatot töröl a lemezről.\nA lemez formázásához kattintson az OK gombra. A kilépéshez kattintson a MÉGSE gombra."
IDS_FORMAT_COMPLETE "A formázás kész."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "A futtatás párbeszédpanelt nem sikerült megjeleníteni (belső hiba)"
IDS_RUNDLG_BROWSE_ERROR "A tallózás párbeszédpanelt nem sikerült megjeleníteni (belső hiba)"

View file

@ -836,6 +836,10 @@ BEGIN
IDS_FORMAT_WARNING "PERINGATAN: Memformat akan menghapus SELURUH data dalam disk.\nUntuk memformat disk, klik OK. untuk keluar, klik BATAL."
IDS_FORMAT_COMPLETE "Format Selesai."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Tidak bisa menampilkan kotak dialog Jalankan Berkas (kesalahan internal)"
IDS_RUNDLG_BROWSE_ERROR "Tidak bisa menampilkan kotak dialog Jelajah (kesalahan internal)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Impossibile mostrare il dialogo Eseguire (errore interno)"
IDS_RUNDLG_BROWSE_ERROR "Impossibile mostrare il dialogo sfoglia (errore interno)"

View file

@ -836,6 +836,10 @@ BEGIN
IDS_FORMAT_WARNING "警告: フォーマットはこのディスクの「すべての」データを消去します。\nフォーマットするならOKをクリック。終了するにはキャンセルをクリックして下さい。"
IDS_FORMAT_COMPLETE "フォーマット完了。"
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "「ファイルの実行」ダイアログを表示できませんでした (内部エラー)"
IDS_RUNDLG_BROWSE_ERROR "「閲覧」ダイアログを表示できませんでした (内部エラー)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -845,6 +845,10 @@ BEGIN
IDS_FORMAT_WARNING "OSTRZEŻENIE: Formatowanie wymaże WSZYSTKIE dane na tym dysku.\nWybierz przycisk OK, aby sformatować dysk lub przycisk ANULUJ, aby zamknąć."
IDS_FORMAT_COMPLETE "Formatowanie zakończone."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Nie można wyświetlić okna Uruchom (błąd wewnętrzny)"
IDS_RUNDLG_BROWSE_ERROR "Nie można wyświetlić okna Przeglądaj (błąd wewnętrzny)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "ATENÇÃO: A formatação irá apagar TODOS os dados deste disco.\nPara formatar o disco, clique em OK. Para sair, clique em CANCELAR."
IDS_FORMAT_COMPLETE "Formatação concluida."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Não é possível abrir a caixa de diálogo Executar arquivo (erro interno)"
IDS_RUNDLG_BROWSE_ERROR "Não é possível abrir a caixa de diálogo Procurar arquivo (erro interno)"

View file

@ -841,6 +841,10 @@ BEGIN
IDS_FORMAT_WARNING "AVERTISMENT: Formatarea va șterge TOATE datele de pe acest disc.\nConfirmați pentru a formata, anulați pentru a ieși."
IDS_FORMAT_COMPLETE "Formatare completă."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "„Executare fișier” nu a putut fi deschis (eroare internă)"
IDS_RUNDLG_BROWSE_ERROR "„Specificare fișiere” nu a putut fi deschisă (eroare internă)"

View file

@ -846,6 +846,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Невозможно отобразить диалоговое окно Выполнить (внутренняя ошибка)"
IDS_RUNDLG_BROWSE_ERROR "Невозможно отобразить диалоговое окно Обзор (внутренняя ошибка)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Nemožno zobraziť dialogové okno Spustiť súbor (vnútorná chyba)"
IDS_RUNDLG_BROWSE_ERROR "Nemožno zobraziť dialogové okno Prehľadávať (vnútorná chyba)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Unable to display Run File dialog box (internal error)"
IDS_RUNDLG_BROWSE_ERROR "Unable to display Browse dialog box (internal error)"

View file

@ -843,6 +843,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Në pamundësi për të shfaqur kutinë dialogut ekzekuto (gabim i brendshëm)"
IDS_RUNDLG_BROWSE_ERROR "Në pamundësi për të shfaqur kutinë dialogut Shfleto (gabim i brendshëm)"

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Kunde inte visa dialogen Kör fil (internt fel)"
IDS_RUNDLG_BROWSE_ERROR "Kunde inte visa dialogen Bläddra (internt fel)"

View file

@ -841,6 +841,10 @@ BEGIN
IDS_FORMAT_WARNING "WARNING: Formatting will erase ALL data on this disk.\nTo format the disk, click OK. To quit, click CANCEL."
IDS_FORMAT_COMPLETE "Format Complete."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Kütük Çalıştır iletişim kutusu görüntülenemiyor (iç yanlışlık)."
IDS_RUNDLG_BROWSE_ERROR "Göz At iletişim kutusu görüntülenemiyor (iç yanlışlık)."

View file

@ -839,6 +839,10 @@ BEGIN
IDS_FORMAT_WARNING "УВАГА: Форматування видалить ВСЮ інформацію на диску.\nЩоб розпочати форматування, натисніть OK. Щоб вийти, натисніть СКАСУВАТИ."
IDS_FORMAT_COMPLETE "Форматування завершено."
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "Неможливо відобразити діалог запуску файлу (внутрішня помилка)"
IDS_RUNDLG_BROWSE_ERROR "Неможливо відобразити діалог огляду (внутрішня помилка)"

View file

@ -847,6 +847,10 @@ BEGIN
IDS_FORMAT_WARNING "警告: 格式化将会擦除磁盘上的所有数据。\n想要格式化这个磁盘, 请点击确定。若想退出,请点击返回。"
IDS_FORMAT_COMPLETE "格式化完成"
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "无法显示运行文件对话框 (内部错误)"
IDS_RUNDLG_BROWSE_ERROR "无法显示浏览对话框 (内部错误)"

View file

@ -847,6 +847,10 @@ BEGIN
IDS_FORMAT_WARNING "警告: 格式化將會清除磁碟上的所有數據。\n想要格式化這個磁碟, 請按 [確定]。若想退出,請按 [返回]。"
IDS_FORMAT_COMPLETE "格式化完成"
/* Warning format system drive dialog strings */
IDS_NO_FORMAT_TITLE "Cannot format this volume"
IDS_NO_FORMAT "This volume cannot be formatted! It contains important system files in order for ReactOS to run."
/* Run File dialog */
IDS_RUNDLG_ERROR "無法顯示執行文件對話方塊 (內部錯誤)"
IDS_RUNDLG_BROWSE_ERROR "無法顯示瀏覽對話方塊 (內部錯誤)"

View file

@ -197,6 +197,10 @@
#define IDS_FORMAT_WARNING 185
#define IDS_FORMAT_COMPLETE 186
/* Warning format system drive dialog strings */
#define IDS_NO_FORMAT_TITLE 188
#define IDS_NO_FORMAT 189
#define IDS_UNKNOWN_APP 190
#define IDS_EXE_DESCRIPTION 191