dbghelp: Fix erroneous access to dwarf symbol cache.

(Spotted by Dan Kegel with valgrind).
This commit is contained in:
Eric Pouech 2008-02-12 21:25:33 +01:00 committed by Alexandre Julliard
parent 9e8c0e54c6
commit 4823663957
1 changed files with 1 additions and 1 deletions

View File

@ -980,7 +980,7 @@ static struct symt* dwarf2_parse_base_type(dwarf2_parse_context_t* ctx,
break;
default: break;
}
if (!ctx->symt_cache[cache_idx])
if (cache_idx != -1 && !ctx->symt_cache[cache_idx])
ctx->symt_cache[cache_idx] = di->symt;
if (di->abbrev->have_child) FIXME("Unsupported children\n");