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

Fix linked-list pointer comparison.
This commit is contained in:
Pako Smith
2018-11-15 11:57:41 +01:00
committed by Hermès BÉLUSCA - MAÏTO
parent 9491979ac3
commit 6cc4e9f6f3
+1 -1
View File
@@ -309,7 +309,7 @@ LPCTSTR PeekHistory(INT dir)
else
{
/* key down */
if (entry->next == Bottom || entry == Bottom)
if (entry->prev == Bottom || entry == Bottom)
{
#ifdef WRAP_HISTORY
entry = Top;