From 6beae245ea0b68681fd6c9b8b846f1abe64ef323 Mon Sep 17 00:00:00 2001 From: Peter Berg Larsen Date: Mon, 3 Jan 2005 20:18:23 +0000 Subject: [PATCH] In function_grep.pl and symbol.c/symbol_clean_string spaces between the function name and * are removed. Fx. the type 'void * foo()' is returned as 'void *foo()'. Recognized this as a valid prototype in symbol_search. --- tools/winedump/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/winedump/search.c b/tools/winedump/search.c index 13bcae55225..b9b9ee34602 100644 --- a/tools/winedump/search.c +++ b/tools/winedump/search.c @@ -126,9 +126,9 @@ int symbol_search (parsed_symbol *sym) while ((iter = strstr (iter, sym->symbol))) { - if (iter > grep_buff && iter[-1] == ' ' && + if (iter > grep_buff && (iter[-1] == ' ' || iter[-1] == '*') && (iter[strlen (sym->symbol)] == ' ' || - iter[strlen (sym->symbol)] == '(')) + iter[strlen (sym->symbol)] == '(')) { if (VERBOSE) printf ("Prototype '%s' looks OK, processing\n", grep_buff); -- 2.11.4.GIT