Use AFC_E_SUCCESS

This commit is contained in:
Jonas Kvinge 2019-12-22 00:45:01 +01:00
parent 8ec5a587fc
commit bdc9f3e8bf
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ iMobileDeviceConnection::iMobileDeviceConnection(const QString &uuid) : device_(
} }
afc_error_t afc_err = afc_client_new(device_, lockdown_service_desc, &afc_); afc_error_t afc_err = afc_client_new(device_, lockdown_service_desc, &afc_);
if (afc_err != 0) { if (afc_err != AFC_E_SUCCESS) {
qLog(Warning) << "afc error:" << afc_err; qLog(Warning) << "afc error:" << afc_err;
lockdownd_service_descriptor_free(lockdown_service_desc); lockdownd_service_descriptor_free(lockdown_service_desc);
lockdownd_client_free(lockdown); lockdownd_client_free(lockdown);