1
0
Fork 0
mirror of https://github.com/reactos/reactos.git synced 2025-07-03 03:41:22 +00:00

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

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;