Skip to content

Loading…

Correctly determine 32bit/64bit #8

Open
wants to merge 1 commit into from

1 participant

@alexzielenski

We talked about this on IRC. This fixes issues with distinguishing between 32-bit targets and 64-bit targets.

@alexzielenski alexzielenski Correctly determine 32bit/64bit
We talked about this on IRC. This fixes issues with distinguishing between 32-bit targets and 64-bit targets.
ecd798c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 31, 2012
  1. @alexzielenski

    Correctly determine 32bit/64bit

    alexzielenski committed
    We talked about this on IRC. This fixes issues with distinguishing between 32-bit targets and 64-bit targets.
Showing with 1 addition and 1 deletion.
  1. +1 −1 inject.c
View
2 inject.c
@@ -223,7 +223,7 @@ static kern_return_t get_stuff(task_t task, cpu_type_t *cputype, struct addr_bun
#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__)
// Try to guess whether the process is 64-bit,
- bool proc64 = info.all_image_info_addr > 0;
+ bool proc64 = info.all_image_info_addr > 0xffffffff;
#else
bool proc64 = false;
#endif
Something went wrong with that request. Please try again.