Commit 776e75e4 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Fix symt_find_nearest so that it searches for 64bit addresses on 64bit platforms.

parent 4195c2f3
...@@ -538,7 +538,7 @@ extern struct module* symt_cmp_addr_module; ...@@ -538,7 +538,7 @@ extern struct module* symt_cmp_addr_module;
extern int symt_cmp_addr(const void* p1, const void* p2); extern int symt_cmp_addr(const void* p1, const void* p2);
extern void copy_symbolW(SYMBOL_INFOW* siw, const SYMBOL_INFO* si); extern void copy_symbolW(SYMBOL_INFOW* siw, const SYMBOL_INFO* si);
extern struct symt_ht* 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* extern struct symt_compiland*
symt_new_compiland(struct module* module, unsigned long address, symt_new_compiland(struct module* module, unsigned long address,
unsigned src_idx); unsigned src_idx);
......
...@@ -900,7 +900,7 @@ static void symt_get_length(struct module* module, const struct symt* symt, ULON ...@@ -900,7 +900,7 @@ static void symt_get_length(struct module* module, const struct symt* symt, ULON
} }
/* assume addr is in module */ /* 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; int mid, high, low;
ULONG64 ref_addr, ref_size; ULONG64 ref_addr, ref_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment