https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6cc4e9f6f390277b7dd95…
commit 6cc4e9f6f390277b7dd95be2cbbbbb4d4f68a87c
Author: Pako Smith <pakosmth(a)gmail.com>
AuthorDate: Thu Nov 15 13:57:41 2018 +0300
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Nov 15 11:57:41 2018 +0100
[CMD] Fix Coverity #715934 "Copy-paste error" (#1040)
Fix linked-list pointer comparison.
---
base/shell/cmd/history.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/shell/cmd/history.c b/base/shell/cmd/history.c
index e6676a7ffd..3c709a7ecf 100644
--- a/base/shell/cmd/history.c
+++ b/base/shell/cmd/history.c
@@ -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;