https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bf6f0cfe9b75374ee68bb88d55fc1cd18a056b51

commit bf6f0cfe9b75374ee68bb88d55fc1cd18a056b51
Author:     winesync <[email protected]>
AuthorDate: Fri Sep 11 16:57:26 2020 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Sep 16 10:35:44 2020 +0200

    [WINESYNC] dbghelp: Use generic image_find_section in elf_check_alternate.
    
    Signed-off-by: Jacek Caban <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id a3e1c7fa02351b032de60fc2a685f14e9f7308fe by Jacek Caban 
<[email protected]>
---
 dll/win32/dbghelp/elf_module.c | 4 ++--
 sdk/tools/winesync/dbghelp.cfg | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dll/win32/dbghelp/elf_module.c b/dll/win32/dbghelp/elf_module.c
index 648169b9806..1013b70749a 100644
--- a/dll/win32/dbghelp/elf_module.c
+++ b/dll/win32/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;
 
diff --git a/sdk/tools/winesync/dbghelp.cfg b/sdk/tools/winesync/dbghelp.cfg
index dc32ebbc6fe..b5e65c980e9 100644
--- a/sdk/tools/winesync/dbghelp.cfg
+++ b/sdk/tools/winesync/dbghelp.cfg
@@ -4,4 +4,4 @@ files:
   include/dbghelp.h: sdk/include/psdk/dbghelp.h
   include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
 tags:
-  wine: a60b3985bf37827fd0b0f7583c31dcf52069b4a8
+  wine: a3e1c7fa02351b032de60fc2a685f14e9f7308fe

Reply via email to