diff options
author | Martin Szulecki | 2012-07-17 16:05:17 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 16:05:17 +0200 |
commit | 995ed659864e14b7c55ee948889b3ffff7ff4991 (patch) | |
tree | c24e26ef05213a05e75d702e3123cb70fb0aa4f9 /src/idevicerestore.c | |
parent | 5e8990bf24b1f5319d1d1d00007f02919753b175 (diff) | |
download | idevicerestore-995ed659864e14b7c55ee948889b3ffff7ff4991.tar.gz idevicerestore-995ed659864e14b7c55ee948889b3ffff7ff4991.tar.bz2 |
main/restore: Pass full client to restore mode and device discovery functions
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 ed89ae8..47c9a4c 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -823,7 +823,7 @@ int check_mode(struct idevicerestore_client_t* client) { mode = MODE_NORMAL; } - else if (!client->ecid && client->udid && (restore_check_mode(client->udid) == 0)) { + else if (!client->ecid && client->udid && (restore_check_mode(client) == 0)) { mode = MODE_RESTORE; } @@ -839,7 +839,7 @@ int check_device(struct idevicerestore_client_t* client) { switch (client->mode->index) { case MODE_RESTORE: if (!client->ecid && client->udid) { - device = restore_check_device(client->udid); + device = restore_check_device(client); if (device < 0) { device = DEVICE_UNKNOWN; } |