[PATCH] [DbgHelp]: when trying to enumerate locals & parameters with SymEnumSymbols, don't return a global or public symbol when the nearest symbol of the current context isn't a function

Eric Pouech eric.pouech at orange.fr
Wed Apr 7 15:23:52 CDT 2010


(return an error instead)

A+
---

 dlls/dbghelp/symbol.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c
index e53b583..0eac098 100644
--- a/dlls/dbghelp/symbol.c
+++ b/dlls/dbghelp/symbol.c
@@ -1037,9 +1037,8 @@ static BOOL symt_enum_locals(struct process* pcs, const char* mask,
                                       &((struct symt_function*)sym)->vchildren);
         regfree(&preg);
         return ret;
-        
     }
-    return send_symbol(se, &pair, NULL, &sym->symt);
+    return FALSE;
 }
 
 /******************************************************************






More information about the wine-patches mailing list