Module: wine Branch: master Commit: feedbb1630ad5136eccd37487603f169dd89e4ad URL: http://source.winehq.org/git/wine.git/?a=commit;h=feedbb1630ad5136eccd374876...
Author: Ken Thomases ken@codeweavers.com Date: Fri Mar 13 11:48:07 2009 -0500
dbghelp: Recognize .dylib files as Mach-O modules.
---
dlls/dbghelp/module.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c index 3e32a82..1a3d94e 100644 --- a/dlls/dbghelp/module.c +++ b/dlls/dbghelp/module.c @@ -35,6 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp); const WCHAR S_ElfW[] = {'<','e','l','f','>','\0'}; const WCHAR S_WineLoaderW[] = {'<','w','i','n','e','-','l','o','a','d','e','r','>','\0'}; static const WCHAR S_DotSoW[] = {'.','s','o','\0'}; +static const WCHAR S_DotDylibW[] = {'.','d','y','l','i','b','\0'}; static const WCHAR S_DotPdbW[] = {'.','p','d','b','\0'}; static const WCHAR S_DotDbgW[] = {'.','d','b','g','\0'}; const WCHAR S_WineW[] = {'w','i','n','e',0}; @@ -430,6 +431,9 @@ enum module_type module_get_type_by_name(const WCHAR* name) return DMT_ELF; #endif
+ if (len > 6 && !strncmpiW(name + len - 6, S_DotDylibW, 6)) + return DMT_MACHO; + if (len > 4 && !strncmpiW(name + len - 4, S_DotPdbW, 4)) return DMT_PDB;