[PATCH 1/2] dbghelp: Fix a copy-paste error in comparing Mach-O segment names.

Ken Thomases ken at codeweavers.com
Tue Aug 4 02:40:37 CDT 2015


---
 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..8a1c5b27 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;
-- 
2.4.3




More information about the wine-patches mailing list