dbghelp: Make ehdr_addr in elf_enum_modules_internal dependent on AT_SYSINFO_EHDR.

Gerald Pfeifer gerald at pfeifer.com
Tue Dec 28 15:24:57 CST 2010

The sole code using ehdr_addr is dependent on AT_SYSINFO_EHDR, so
ehdr_addr itself should only be declared in that case, too.

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

diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 2bfa2a4..ae3d86e 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -1404,7 +1404,9 @@ static BOOL elf_enum_modules_internal(const struct process* pcs,
     struct link_map     lm;
     char		bufstr[256];
     WCHAR               bufstrW[MAX_PATH];
     unsigned long       ehdr_addr;
     if (!pcs->dbg_hdr_addr ||
         !ReadProcessMemory(pcs->handle, (void*)pcs->dbg_hdr_addr,

More information about the wine-patches mailing list