mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:13:04 +00:00
fix a small bug in choice.c so it does print out choice "sadsad" right
svn path=/trunk/; revision=16456
This commit is contained in:
parent
2fc5a38d16
commit
1369d1649e
1 changed files with 4 additions and 4 deletions
|
@ -105,7 +105,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
||||||
{
|
{
|
||||||
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||||
LPTSTR lpOptions;
|
LPTSTR lpOptions;
|
||||||
TCHAR Options[2];
|
TCHAR Options[4];
|
||||||
LPTSTR lpText = NULL;
|
LPTSTR lpText = NULL;
|
||||||
BOOL bNoPrompt = FALSE;
|
BOOL bNoPrompt = FALSE;
|
||||||
BOOL bCaseSensitive = FALSE;
|
BOOL bCaseSensitive = FALSE;
|
||||||
|
@ -123,7 +123,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
||||||
TCHAR Ch;
|
TCHAR Ch;
|
||||||
DWORD amount,clk;
|
DWORD amount,clk;
|
||||||
|
|
||||||
LoadString(CMD_ModuleHandle, STRING_CHOICE_OPTION, Options, 2);
|
LoadString(CMD_ModuleHandle, STRING_CHOICE_OPTION, Options, 4);
|
||||||
lpOptions = Options;
|
lpOptions = Options;
|
||||||
|
|
||||||
if (_tcsncmp (param, _T("/?"), 2) == 0)
|
if (_tcsncmp (param, _T("/?"), 2) == 0)
|
||||||
|
@ -228,7 +228,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
||||||
|
|
||||||
for (i = 1; (unsigned)i < _tcslen (lpOptions); i++)
|
for (i = 1; (unsigned)i < _tcslen (lpOptions); i++)
|
||||||
ConOutPrintf (_T(",%c"), lpOptions[i]);
|
ConOutPrintf (_T(",%c"), lpOptions[i]);
|
||||||
|
|
||||||
ConOutPrintf (_T("]?"));
|
ConOutPrintf (_T("]?"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,7 +239,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
ConInKey (&ir);
|
ConInKey (&ir);
|
||||||
|
|
||||||
val = IsKeyInString (lpOptions,
|
val = IsKeyInString (lpOptions,
|
||||||
#ifdef _UNICODE
|
#ifdef _UNICODE
|
||||||
ir.Event.KeyEvent.uChar.UnicodeChar,
|
ir.Event.KeyEvent.uChar.UnicodeChar,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue