aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-03-23 20:23:31 +0000
committerladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-03-23 20:23:31 +0000
commitbaaeb5af7149f9a4ced95331a6c577f6c0c96e34 (patch)
tree6a07c08fd7a0b2b89828681c220dd4581b0ea126
parents/an breakpad/a breakpad/ (#127), patch by techtonik, r=me (diff)
downloadbreakpad-baaeb5af7149f9a4ced95331a6c577f6c0c96e34.tar.xz
issue141: reviewer Waylonis
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@132 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r--src/common/mac/macho_id.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/mac/macho_id.cc b/src/common/mac/macho_id.cc
index 9605166e..e3f90e0c 100644
--- a/src/common/mac/macho_id.cc
+++ b/src/common/mac/macho_id.cc
@@ -191,7 +191,10 @@ bool MachoID::IDCommand(int cpu_type, unsigned char identifier[16]) {
identifier[9] = (dylib_cmd.dylib.compatibility_version >> 16) & 0xFF;
identifier[10] = (dylib_cmd.dylib.compatibility_version >> 8) & 0xFF;
identifier[11] = dylib_cmd.dylib.compatibility_version & 0xFF;
- identifier[12] = identifier[13] = identifier[14] = identifier[15] = 0;
+ identifier[12] = (cpu_type >> 24) & 0xFF;
+ identifier[13] = (cpu_type >> 16) & 0xFF;
+ identifier[14] = (cpu_type >> 8) & 0xFF;
+ identifier[15] = cpu_type & 0xFF;
return true;
}