Author: dgorbachev
Date: Wed Dec 24 01:04:49 2008
New Revision: 38319
URL:
http://svn.reactos.org/svn/reactos?rev=38319&view=rev
Log:
Fix error: suggest explicit braces to avoid ambiguous 'else'.
When compiling with GCC 4.4.0.
Modified:
trunk/reactos/base/applications/network/telnet/src/tnmain.cpp
Modified: trunk/reactos/base/applications/network/telnet/src/tnmain.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/telnet/src/tnmain.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/telnet/src/tnmain.cpp [iso-8859-1] Wed Dec 24
01:04:49 2008
@@ -143,7 +143,7 @@
MustRefresh = 1;
break;
case VK_RIGHT: //crn(a)ozemail.com.au (added ctrl+arrow)
- if (cursor < current)
+ if (cursor < current) {
if (InputRecord.Event.KeyEvent.dwControlKeyState &
(LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) {
unsigned int j, k;
@@ -159,8 +159,9 @@
cursor++;
MustRefresh = 1;
break;
+ }
case VK_LEFT: //crn(a)ozemail.com.au (added ctrl+arrow)
- if (cursor > 0)
+ if (cursor > 0) {
if(InputRecord.Event.KeyEvent.dwControlKeyState &
(LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) {
int j, k;
@@ -176,6 +177,7 @@
cursor--;
MustRefresh = 1;
break;
+ }
case VK_HOME:
if (cursor>0) cursor = 0;
MustRefresh = 1;