mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51:06 +00:00
fix no confirmation before format
See issue #2498 for more details. svn path=/trunk/; revision=27975
This commit is contained in:
parent
979d2a51d4
commit
c50397f0e4
2 changed files with 9 additions and 11 deletions
|
@ -420,17 +420,15 @@ _tmain(int argc, TCHAR *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
LoadString( GetModuleHandle(NULL), STRING_YN_FORMAT, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);
|
||||
_tprintf(szMsg, RootDirectory[0] );
|
||||
|
||||
LoadString( GetModuleHandle(NULL), STRING_YES_NO_FAQ, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);
|
||||
|
||||
while( 1 ) {
|
||||
|
||||
LoadString( GetModuleHandle(NULL), STRING_YN_FORMAT, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);
|
||||
_tprintf(szMsg, RootDirectory[0] );
|
||||
|
||||
LoadString( GetModuleHandle(NULL), STRING_YES_NO_FAQ, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);
|
||||
|
||||
if(_strnicmp(&input[0],&szMsg[0],1)) break;
|
||||
|
||||
if(_strnicmp(&input[0],&szMsg[1],1) ) {
|
||||
|
||||
_fgetts( input, sizeof(input)/2, stdin );
|
||||
if(_strnicmp(&input[0],&szMsg[0],1) == 0) break;
|
||||
if(_strnicmp(&input[0],&szMsg[1],1) == 0) {
|
||||
_tprintf(_T("\n"));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ STRING_ERROR_LABEL "Eine unzul
|
|||
|
||||
STRING_YN_FORMAT "\nACHTUNG, beim Formatieren werden ALLE Daten auf dem Datenträger %C: gelöscht!\nMit Formatierung fortfahren? (Ja/Nein)? "
|
||||
|
||||
STRING_YES_NO_FAQ "J/N"
|
||||
STRING_YES_NO_FAQ "JN"
|
||||
|
||||
STRING_VERIFYING "Prüfen"
|
||||
|
||||
|
|
Loading…
Reference in a new issue