summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/ipodio-win32.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2007-11-06 19:28:14 +0000
committerMagnus Holmgren <magnushol@gmail.com>2007-11-06 19:28:14 +0000
commit8a7c0eee8aa041ad2f4d825dd925ed5b66d5b84c (patch)
tree622781cefa7a3f500127e078bab70da3dc705a55 /rbutil/ipodpatcher/ipodio-win32.c
parentf5903789fb745d21644f93a82fd3e2404bb8ff65 (diff)
downloadrockbox-8a7c0eee8aa041ad2f4d825dd925ed5b66d5b84c.tar.gz
rockbox-8a7c0eee8aa041ad2f4d825dd925ed5b66d5b84c.tar.bz2
rockbox-8a7c0eee8aa041ad2f4d825dd925ed5b66d5b84c.zip
Hopefully fix Ipod bootloader installation on Windows with RbUtilQt, without breaking ipodpatcher. I don't have any Ipod to test with, but the change is easy to revert.rbutilqt_v1.0.3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15498 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/ipodio-win32.c')
-rw-r--r--rbutil/ipodpatcher/ipodio-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/ipodio-win32.c b/rbutil/ipodpatcher/ipodio-win32.c
index 1bf1ac7613..2f75153c3a 100644
--- a/rbutil/ipodpatcher/ipodio-win32.c
+++ b/rbutil/ipodpatcher/ipodio-win32.c
@@ -72,7 +72,7 @@ int ipod_open(struct ipod_t* ipod, int silent)
DISK_GEOMETRY diskgeometry;
unsigned long n;
- ipod->dh = CreateFile(ipod->diskname, GENERIC_READ,
+ ipod->dh = CreateFileA(ipod->diskname, GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, NULL);
@@ -128,7 +128,7 @@ int ipod_reopen_rw(struct ipod_t* ipod)
unlock_volume(ipod->dh);
CloseHandle(ipod->dh);
- ipod->dh = CreateFile(ipod->diskname, GENERIC_READ | GENERIC_WRITE,
+ ipod->dh = CreateFileA(ipod->diskname, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, NULL);