diff options
-rw-r--r-- | soltools/ldump/hashtbl.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/soltools/ldump/hashtbl.cxx b/soltools/ldump/hashtbl.cxx index 712357f3a7fe..ed17911c3992 100644 --- a/soltools/ldump/hashtbl.cxx +++ b/soltools/ldump/hashtbl.cxx @@ -405,11 +405,12 @@ void* HashTableIterator::GetNext() void* HashTableIterator::GetPrev() { - if (m_lAt <= 0) - return NULL; - - m_lAt--; - return FindValidObject(false /* backward */); + if (m_lAt) + { + --m_lAt; + return FindValidObject(false /* backward */); + } + return NULL; } void* HashTableIterator::FindValidObject(bool bForward) |