forked from len0rd/rockbox
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
This commit is contained in:
parent
cd06755e04
commit
a24b02c1e6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue