summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2010-05-05 19:35:37 +0000
committerDominik Wenger <domonoky@googlemail.com>2010-05-05 19:35:37 +0000
commit8e2ebc106868a642d52cada135bb4ed6d5223280 (patch)
tree913b9c4f9335bb9bff0f8d94b089082750e9a9d0 /rbutil
parentab0a0bf0ad586f8a214d508f23c41035687851ec (diff)
downloadrockbox-8e2ebc106868a642d52cada135bb4ed6d5223280.tar.gz
rockbox-8e2ebc106868a642d52cada135bb4ed6d5223280.tar.bz2
rockbox-8e2ebc106868a642d52cada135bb4ed6d5223280.zip
rbutil: fix compiling on windows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25833 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallipod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
index e784ee9a1f..14f3fa5ddf 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
@@ -232,7 +232,7 @@ bool BootloaderInstallIpod::ipodInitialize(struct ipod_t *ipod)
return false;
}
#if defined(Q_OS_WIN32)
- sprintf(ipod->diskname, "\\\\.\\PhysicalDrive%i", diskname.toInt());
+ sprintf(ipod->diskname, "\\\\.\\PhysicalDrive%i", devicename.toInt());
#elif defined(Q_OS_MACX)
sprintf(ipod->diskname, "%s",
qPrintable(devicename.remove(QRegExp("s[0-9]+$"))));