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.tar.gz rockbox-a24b02c1e64694a1ffd5fc58e3247a7995134276.zip |
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 4914e4b6cd..34bf8d58c2 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) | |||
120 | unlock_volume(*dh); | 120 | unlock_volume(*dh); |
121 | CloseHandle(*dh); | 121 | CloseHandle(*dh); |
122 | 122 | ||
123 | *dh = CreateFile(diskname, GENERIC_WRITE, | 123 | *dh = CreateFile(diskname, GENERIC_READ | GENERIC_WRITE, |
124 | FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, | 124 | FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, |
125 | FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, NULL); | 125 | FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, NULL); |
126 | 126 | ||