Core: Fix guess search resulting in tons of zeroes

This commit is contained in:
Vicki Pfau 2017-06-19 22:29:20 -07:00
parent e118fec1cf
commit 96c0d7c413
1 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ static size_t _searchGuess(const void* mem, size_t size, const struct mCoreMemor
// Decimal:
value = strtoull(valueStr, &end, 10);
if (end) {
if (end && !end[0]) {
if (value > 0x10000) {
found += _search32(mem, size, block, value, out, limit ? limit - found : 0);
} else if (value > 0x100) {
@ -305,7 +305,7 @@ static size_t _searchGuess(const void* mem, size_t size, const struct mCoreMemor
// Hex:
value = strtoull(valueStr, &end, 16);
if (end) {
if (end && !end[0]) {
if (value > 0x10000) {
found += _search32(mem, size, block, value, out, limit ? limit - found : 0);
} else if (value > 0x100) {