Module: wine Branch: master Commit: 2ace215b9a9a971b08dc319529249494b2897bc8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2ace215b9a9a971b08dc319529...
Author: Charles Davis cdavis5x@gmail.com Date: Thu Jan 22 23:30:55 2015 -0700
kernel32: Recognize 64-bit Mach-O modules, too.
---
dlls/kernel32/module.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/module.c b/dlls/kernel32/module.c index 2a87e66..f495e81 100644 --- a/dlls/kernel32/module.c +++ b/dlls/kernel32/module.c @@ -289,10 +289,11 @@ void MODULE_get_binary_info( HANDLE hfile, struct binary_info *info ) } } /* Mach-o File with Endian set to Big Endian or Little Endian */ - else if (header.macho.magic == 0xfeedface || header.macho.magic == 0xcefaedfe) + else if (header.macho.magic == 0xfeedface || header.macho.magic == 0xcefaedfe || + header.macho.magic == 0xfeedfacf || header.macho.magic == 0xcffaedfe) { if ((header.macho.cputype >> 24) == 1) info->flags |= BINARY_FLAG_64BIT; - if (header.macho.magic == 0xcefaedfe) + if (header.macho.magic == 0xcefaedfe || header.macho.magic == 0xcffaedfe) { header.macho.filetype = RtlUlongByteSwap( header.macho.filetype ); header.macho.cputype = RtlUlongByteSwap( header.macho.cputype );