From bdc9f3e8bfac391bbac038b8fa5087a2b02feeab Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 22 Dec 2019 00:45:01 +0100 Subject: [PATCH] Use AFC_E_SUCCESS --- src/device/imobiledeviceconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/imobiledeviceconnection.cpp b/src/device/imobiledeviceconnection.cpp index 99680c5b..cc47ce13 100644 --- a/src/device/imobiledeviceconnection.cpp +++ b/src/device/imobiledeviceconnection.cpp @@ -60,7 +60,7 @@ iMobileDeviceConnection::iMobileDeviceConnection(const QString &uuid) : device_( } 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; lockdownd_service_descriptor_free(lockdown_service_desc); lockdownd_client_free(lockdown);