summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2007-10-31 18:29:38 +0000
committerMagnus Holmgren <magnushol@gmail.com>2007-10-31 18:29:38 +0000
commit5e37895bac622baa18e4330cba0658a9f2be9b5e (patch)
treee5cbaf4e56206885cda17a3e35156873bd6f574b /rbutil/sansapatcher
parent164b8f675c49cef79ec73af0cc473a4b3172db73 (diff)
downloadrockbox-5e37895bac622baa18e4330cba0658a9f2be9b5e.tar.gz
rockbox-5e37895bac622baa18e4330cba0658a9f2be9b5e.tar.bz2
rockbox-5e37895bac622baa18e4330cba0658a9f2be9b5e.zip
RbUtilQt: Make Sansa bootloader installation work on Windows. (Compiler warnings _are_ useful. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15386 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/sansapatcher')
-rw-r--r--rbutil/sansapatcher/sansaio-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/sansapatcher/sansaio-win32.c b/rbutil/sansapatcher/sansaio-win32.c
index e9b8819f19..8c2c696c1a 100644
--- a/rbutil/sansapatcher/sansaio-win32.c
+++ b/rbutil/sansapatcher/sansaio-win32.c
@@ -73,7 +73,7 @@ int sansa_open(struct sansa_t* sansa, int silent)
DISK_GEOMETRY diskgeometry;
unsigned long n;
- sansa->dh = CreateFile(sansa->diskname, GENERIC_READ,
+ sansa->dh = CreateFileA(sansa->diskname, GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, NULL);
@@ -121,7 +121,7 @@ int sansa_reopen_rw(struct sansa_t* sansa)
unlock_volume(sansa->dh);
CloseHandle(sansa->dh);
- sansa->dh = CreateFile(sansa->diskname, GENERIC_READ | GENERIC_WRITE,
+ sansa->dh = CreateFileA(sansa->diskname, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, NULL);