summaryrefslogtreecommitdiff
path: root/utils/ipodpatcher/ipodio-posix.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2022-04-13 21:31:02 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2022-04-13 21:36:44 +0200
commitcc2f36492666be11da12890b35303a63e3aced87 (patch)
tree54beafc2aca5cafe18690f22631c13c1a732ee75 /utils/ipodpatcher/ipodio-posix.c
parentb9ab75732ad53659b7aa9b6e7bb7e37769cb708f (diff)
downloadrockbox-cc2f36492666be11da12890b35303a63e3aced87.tar.gz
rockbox-cc2f36492666be11da12890b35303a63e3aced87.zip
rbutil: Fix ipodpatcher bootloader install on Windows.
During bootloader installation ipodpatcher disk access is accidentially set up twice. This is not a problem except on Windows, which will abort with a "permission denied" error. Change-Id: I9a835ef0d49f24df741b7b2909c4bd87cb1c8341
Diffstat (limited to 'utils/ipodpatcher/ipodio-posix.c')
-rw-r--r--utils/ipodpatcher/ipodio-posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ipodpatcher/ipodio-posix.c b/utils/ipodpatcher/ipodio-posix.c
index 9b386d994f..dc856a2e0d 100644
--- a/utils/ipodpatcher/ipodio-posix.c
+++ b/utils/ipodpatcher/ipodio-posix.c
@@ -355,6 +355,7 @@ int ipod_reopen_rw(struct ipod_t* ipod)
355int ipod_close(struct ipod_t* ipod) 355int ipod_close(struct ipod_t* ipod)
356{ 356{
357 close(ipod->dh); 357 close(ipod->dh);
358 ipod->dh = -1;
358 return 0; 359 return 0;
359} 360}
360 361