[PATCH 8/9] [DbgHelp]: fix symt_find_nearest so that it searches for 64bit addresses on 64bit platforms

Eric Pouech eric.pouech at orange.fr
Mon Dec 14 15:06:06 CST 2009




A+
---

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


diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h
index a0b40a1..fd5ec0d 100644
--- a/dlls/dbghelp/dbghelp_private.h
+++ b/dlls/dbghelp/dbghelp_private.h
@@ -538,7 +538,7 @@ extern struct module* symt_cmp_addr_module;
 extern int          symt_cmp_addr(const void* p1, const void* p2);
 extern void         copy_symbolW(SYMBOL_INFOW* siw, const SYMBOL_INFO* si);
 extern struct symt_ht*
-                    symt_find_nearest(struct module* module, DWORD addr);
+                    symt_find_nearest(struct module* module, DWORD_PTR addr);
 extern struct symt_compiland*
                     symt_new_compiland(struct module* module, unsigned long address,
                                        unsigned src_idx);
diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c
index 52ad52f..9edae7d 100644
--- a/dlls/dbghelp/symbol.c
+++ b/dlls/dbghelp/symbol.c
@@ -900,7 +900,7 @@ static void symt_get_length(struct module* module, const struct symt* symt, ULON
 }
 
 /* assume addr is in module */
-struct symt_ht* symt_find_nearest(struct module* module, DWORD addr)
+struct symt_ht* symt_find_nearest(struct module* module, DWORD_PTR addr)
 {
     int         mid, high, low;
     ULONG64     ref_addr, ref_size;






More information about the wine-patches mailing list