diff options
author | Joshua Hill | 2010-06-22 03:08:45 -0400 |
---|---|---|
committer | Joshua Hill | 2010-06-22 03:08:45 -0400 |
commit | 9ac5edef25cf7e084a639c2e70f9f7e963d96152 (patch) | |
tree | 896b2c7a436e840388e69a9c0325008ffc330d1d /src/idevicerestore.c | |
parent | b27dd3c4bbe2915fd7c35383ef283e222b422829 (diff) | |
download | idevicerestore-9ac5edef25cf7e084a639c2e70f9f7e963d96152.tar.gz idevicerestore-9ac5edef25cf7e084a639c2e70f9f7e963d96152.tar.bz2 |
Added info for iPhone4 and fixed a few runtime errors
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 3e346fc..456d290 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -417,7 +417,7 @@ int get_bdid(struct idevicerestore_client_t* client, uint32_t* bdid) { int get_cpid(struct idevicerestore_client_t* client, uint32_t* cpid) { switch (client->mode->index) { case MODE_NORMAL: - if (normal_get_cpid(client->uuid, &client->device->chip_id) < 0) { + if (normal_get_cpid(client->uuid, cpid) < 0) { client->device->chip_id = -1; return -1; } @@ -425,7 +425,7 @@ int get_cpid(struct idevicerestore_client_t* client, uint32_t* cpid) { case MODE_DFU: case MODE_RECOVERY: - if (recovery_get_cpid(client, &client->device->chip_id) < 0) { + if (recovery_get_cpid(client, cpid) < 0) { client->device->chip_id = -1; return -1; } |