- Fixed the check for printable ascii characters.

svn path=/trunk/; revision=5828
This commit is contained in:
Hartmut Birr 2003-08-24 16:02:52 +00:00
parent 9cb40ad0da
commit 26532ec2d6

View file

@ -471,7 +471,7 @@ VOID ReadCommand (LPTSTR str, INT maxlen)
if ((ch >= 32 && ch <= 255) && (charcount != (maxlen - 2))) if ((ch >= 32 && ch <= 255) && (charcount != (maxlen - 2)))
#else #else
ch = ir.Event.KeyEvent.uChar.AsciiChar; ch = ir.Event.KeyEvent.uChar.AsciiChar;
if (ch >= 32 && (charcount != (maxlen - 2))) if ((UCHAR)ch >= 32 && (charcount != (maxlen - 2)))
#endif /* _UNICODE */ #endif /* _UNICODE */
{ {
/* insert character into string... */ /* insert character into string... */