Jacek Caban : dbghelp: Use generic image_find_section in elf_check_alternate.

Alexandre Julliard julliard at winehq.org
Mon Mar 16 16:49:06 CDT 2020


Module: wine
Branch: master
Commit: a3e1c7fa02351b032de60fc2a685f14e9f7308fe
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a3e1c7fa02351b032de60fc2a685f14e9f7308fe

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Mar 16 16:05:11 2020 +0100

dbghelp: Use generic image_find_section in elf_check_alternate.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 648169b980..1013b70749 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -1139,7 +1139,7 @@ static BOOL elf_check_alternate(struct image_file_map* fmap, const struct module
     struct image_section_map buildid_sect, debuglink_sect;
 
     /* if present, add the .gnu_debuglink file as an alternate to current one */
-    if (elf_find_section(fmap, ".note.gnu.build-id", SHT_NULL, &buildid_sect))
+    if (image_find_section(fmap, ".note.gnu.build-id", &buildid_sect))
     {
         const uint32_t* note;
 
@@ -1156,7 +1156,7 @@ static BOOL elf_check_alternate(struct image_file_map* fmap, const struct module
         image_unmap_section(&buildid_sect);
     }
     /* if present, add the .gnu_debuglink file as an alternate to current one */
-    if (!ret && elf_find_section(fmap, ".gnu_debuglink", SHT_NULL, &debuglink_sect))
+    if (!ret && image_find_section(fmap, ".gnu_debuglink", &debuglink_sect))
     {
         const char* dbg_link;
 




More information about the wine-cvs mailing list