]> git.saurik.com Git - cycript.git/commitdiff
Attempting a silly x64 fix.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 1 Nov 2009 02:55:08 +0000 (02:55 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 1 Nov 2009 02:55:08 +0000 (02:55 +0000)
Mach/Inject.cpp

index 198f2f3ae0db67e94b5c648c36138f3eb58c2e1e..efb53d4af8c3cb66252d5091f0fd62f8fbf82ee3 100644 (file)
@@ -91,7 +91,7 @@ void InjectLibrary(pid_t pid) {
     flavor = ARM_THREAD_STATE;
     count = ARM_THREAD_STATE_COUNT;
     push = 0;
-#elif defined(__i386__)
+#elif defined(__i386__) || defined(__x86_64__)
     i386_thread_state_t state;
     flavor = i386_THREAD_STATE;
     count = i386_THREAD_STATE_COUNT;
@@ -119,7 +119,7 @@ void InjectLibrary(pid_t pid) {
         state.pc &= ~0x1;
         state.cpsr |= 0x20;
     }
-#elif defined(__i386__)
+#elif defined(__i386__) || defined(__x86_64__)
     frame[0] = 0;
     frame[1] = data;