diff options
| author | Dave Chapman <dave@dchapman.com> | 2006-12-14 11:20:53 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2006-12-14 11:20:53 +0000 |
| commit | a24b02c1e64694a1ffd5fc58e3247a7995134276 (patch) | |
| tree | 6d2ec1609ee8ed8cc1f75cd010e3fe9cc0634316 | |
| parent | cd06755e04d059f60ee69dc0c416286cdfcee76f (diff) | |
| download | rockbox-a24b02c1e64694a1ffd5fc58e3247a7995134276.zip rockbox-a24b02c1e64694a1ffd5fc58e3247a7995134276.tar.gz rockbox-a24b02c1e64694a1ffd5fc58e3247a7995134276.tar.bz2 rockbox-a24b02c1e64694a1ffd5fc58e3247a7995134276.tar.xz | |
Bugfix - when opening a device as read/write, one should open a device as read/write.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11763 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | tools/ipodpatcher/ipodio-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipodpatcher/ipodio-win32.c b/tools/ipodpatcher/ipodio-win32.c index 4914e4b..34bf8d5 100644 --- a/tools/ipodpatcher/ipodio-win32.c +++ b/tools/ipodpatcher/ipodio-win32.c @@ -120,7 +120,7 @@ int ipod_reopen_rw(HANDLE* dh, char* diskname) unlock_volume(*dh); CloseHandle(*dh); - *dh = CreateFile(diskname, GENERIC_WRITE, + *dh = CreateFile(diskname, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, NULL); |