mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 08:32:58 +00:00
[CMD] Fix missing/misplaced newlines at end of displayed errors and prompts.
ConInString() should display a newline when it encounters the terminating carriage-return pressed by the user for ending string output. + Remove the extra \n hacks in FilePromptYN[A]. Improve outputted strings from DATE and TIME commands. + Rename some STRING_***_ERROR defines. CORE-18489
This commit is contained in:
parent
cef9f5c4a6
commit
db219e45c0
33 changed files with 450 additions and 451 deletions
|
@ -570,7 +570,6 @@ INT FilePromptYN (UINT resID)
|
|||
|
||||
/* preliminary fix */
|
||||
ConInString(szIn, 10);
|
||||
ConOutChar(_T('\n'));
|
||||
|
||||
_tcsupr (szIn);
|
||||
for (p = szIn; _istspace (*p); p++)
|
||||
|
@ -634,13 +633,12 @@ INT FilePromptYNA (UINT resID)
|
|||
|
||||
/* preliminary fix */
|
||||
ConInString(szIn, 10);
|
||||
ConOutChar(_T('\n'));
|
||||
|
||||
_tcsupr (szIn);
|
||||
for (p = szIn; _istspace (*p); p++)
|
||||
;
|
||||
|
||||
LoadString( CMD_ModuleHandle, STRING_COPY_OPTION, szMsg, ARRAYSIZE(szMsg));
|
||||
LoadString(CMD_ModuleHandle, STRING_COPY_OPTION, szMsg, ARRAYSIZE(szMsg));
|
||||
|
||||
if (_tcsncmp(p, &szMsg[0], 1) == 0)
|
||||
return PROMPT_YES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue