mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
fix no confirmation before format
See issue #2498 for more details. svn path=/trunk/; revision=27975
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user