Ken Thomases : dbghelp: Fix a copy-paste error in comparing Mach-O segment names.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 5 10:28:03 CDT 2015


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

Author: Ken Thomases <ken at codeweavers.com>
Date:   Tue Aug  4 02:40:37 2015 -0500

dbghelp: Fix a copy-paste error in comparing Mach-O segment names.

---

 dlls/dbghelp/macho_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c
index 3e91403..8a1c5b2 100644
--- a/dlls/dbghelp/macho_module.c
+++ b/dlls/dbghelp/macho_module.c
@@ -337,7 +337,7 @@ BOOL macho_find_section(struct image_file_map* ifm, const char* segname, const c
         for (i = 0; i < fmap->num_sections; i++)
         {
             if (strcmp(fmap->sect[i].section->sectname, sectname) == 0 &&
-                (!segname || strcmp(fmap->sect[i].section->sectname, segname) == 0))
+                (!segname || strcmp(fmap->sect[i].section->segname, segname) == 0))
             {
                 ism->fmap = ifm;
                 ism->sidx = i;




More information about the wine-cvs mailing list