From bd9ba7ec37579505e29dea352e5dc1f843975bb5 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 13 Aug 2006 20:46:58 +0200 Subject: [PATCH] winedbg: Fixed the symbol lookup so that it can really find _foo when looking for foo. --- programs/winedbg/symbol.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/programs/winedbg/symbol.c b/programs/winedbg/symbol.c index 9e8ccf451c7..23f59a6b8a7 100644 --- a/programs/winedbg/symbol.c +++ b/programs/winedbg/symbol.c @@ -233,11 +233,7 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno, * enumeration */ SymSetOptions((opt = SymGetOptions()) | 0x40000000); - if (!SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv)) - { - SymSetOptions(opt); - return sglv_unknown; - } + SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv); if (!sgv.num && (name[0] != '_')) { @@ -255,11 +251,7 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno, buffer[2] = '_'; strcpy(&buffer[3], name); } - if (!SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv)) - { - SymSetOptions(opt); - return sglv_unknown; - } + SymEnumSymbols(dbg_curr_process->handle, 0, buffer, sgv_cb, (void*)&sgv); } SymSetOptions(opt);