Commit 3b38c986 authored by Jake Petroules's avatar Jake Petroules

Use correct AMDError constant name in iostool

Amends 350db248.

Change-Id: I2e7e1903b2cae1d73be19e85c94e4199e8b2191a
Reviewed-by: Vikas Pachdha's avatarVikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 6ba478e3
......@@ -151,7 +151,7 @@ typedef int (MDEV_API *AMDeviceSecureInstallApplicationPtr)(int, AMDeviceRef, CF
namespace Ios {
namespace Internal {
static const am_res_t DeveloperImageAlreadyInstalled = 0xe8000076; /*Already installed*/
static const am_res_t kAMDMobileImageMounterImageMountFailed = 0xe8000076;
class MobileDeviceLib {
public :
......@@ -1036,8 +1036,8 @@ bool CommandSession::mountDeveloperDiskImage() {
if (connectDevice()) {
CFStringRef cfImgPath = imagePath.toCFString();
am_res_t result = lib()->deviceMountImage(device, cfImgPath, options, &mountCallback, 0);
if (result == 0 || result == DeveloperImageAlreadyInstalled) {
// Mounting succeeded.
if (result == 0 || result == kAMDMobileImageMounterImageMountFailed) {
// Mounting succeeded or developer image already installed
success = true;
} else {
addError(QString::fromLatin1("Mount Developer Disk Image \"%1\" failed, AMDeviceMountImage returned %2 (0x%3)")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment