[CMD] Fix Coverity #715934 "Copy-paste error" (#1040)

Fix linked-list pointer comparison.
This commit is contained in:
Pako Smith 2018-11-15 13:57:41 +03:00 committed by Hermès BÉLUSCA - MAÏTO
parent 9491979ac3
commit 6cc4e9f6f3

View file

@ -309,7 +309,7 @@ LPCTSTR PeekHistory(INT dir)
else else
{ {
/* key down */ /* key down */
if (entry->next == Bottom || entry == Bottom) if (entry->prev == Bottom || entry == Bottom)
{ {
#ifdef WRAP_HISTORY #ifdef WRAP_HISTORY
entry = Top; entry = Top;