mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
Fix error: suggest explicit braces to avoid ambiguous 'else'.
When compiling with GCC 4.4.0. svn path=/trunk/; revision=38319
This commit is contained in:
parent
cee8fc3735
commit
9d13412630
1 changed files with 4 additions and 2 deletions
|
@ -143,7 +143,7 @@ struct cmdHistory * cfgets (char *buf, unsigned int length, struct cmdHistory *c
|
||||||
MustRefresh = 1;
|
MustRefresh = 1;
|
||||||
break;
|
break;
|
||||||
case VK_RIGHT: //crn@ozemail.com.au (added ctrl+arrow)
|
case VK_RIGHT: //crn@ozemail.com.au (added ctrl+arrow)
|
||||||
if (cursor < current)
|
if (cursor < current) {
|
||||||
if (InputRecord.Event.KeyEvent.dwControlKeyState &
|
if (InputRecord.Event.KeyEvent.dwControlKeyState &
|
||||||
(LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) {
|
(LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) {
|
||||||
unsigned int j, k;
|
unsigned int j, k;
|
||||||
|
@ -159,8 +159,9 @@ struct cmdHistory * cfgets (char *buf, unsigned int length, struct cmdHistory *c
|
||||||
cursor++;
|
cursor++;
|
||||||
MustRefresh = 1;
|
MustRefresh = 1;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case VK_LEFT: //crn@ozemail.com.au (added ctrl+arrow)
|
case VK_LEFT: //crn@ozemail.com.au (added ctrl+arrow)
|
||||||
if (cursor > 0)
|
if (cursor > 0) {
|
||||||
if(InputRecord.Event.KeyEvent.dwControlKeyState &
|
if(InputRecord.Event.KeyEvent.dwControlKeyState &
|
||||||
(LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) {
|
(LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) {
|
||||||
int j, k;
|
int j, k;
|
||||||
|
@ -176,6 +177,7 @@ struct cmdHistory * cfgets (char *buf, unsigned int length, struct cmdHistory *c
|
||||||
cursor--;
|
cursor--;
|
||||||
MustRefresh = 1;
|
MustRefresh = 1;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case VK_HOME:
|
case VK_HOME:
|
||||||
if (cursor>0) cursor = 0;
|
if (cursor>0) cursor = 0;
|
||||||
MustRefresh = 1;
|
MustRefresh = 1;
|
||||||
|
|
Loading…
Reference in a new issue