rbutil: fix compiling on windows.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25833 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2010-05-05 19:35:37 +00:00
parent ab0a0bf0ad
commit 8e2ebc1068

View file

@ -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]+$"))));