summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-22 03:08:45 -0400
committerGravatar Joshua Hill2010-06-22 03:08:45 -0400
commit9ac5edef25cf7e084a639c2e70f9f7e963d96152 (patch)
tree896b2c7a436e840388e69a9c0325008ffc330d1d /src/idevicerestore.c
parentb27dd3c4bbe2915fd7c35383ef283e222b422829 (diff)
downloadidevicerestore-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.c4
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;
}