diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2022-04-13 21:31:02 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2022-04-13 21:36:44 +0200 |
commit | cc2f36492666be11da12890b35303a63e3aced87 (patch) | |
tree | 54beafc2aca5cafe18690f22631c13c1a732ee75 /utils/ipodpatcher/ipodio-win32.c | |
parent | b9ab75732ad53659b7aa9b6e7bb7e37769cb708f (diff) | |
download | rockbox-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-win32.c')
-rw-r--r-- | utils/ipodpatcher/ipodio-win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ipodpatcher/ipodio-win32.c b/utils/ipodpatcher/ipodio-win32.c index cea218774a..2c52a64658 100644 --- a/utils/ipodpatcher/ipodio-win32.c +++ b/utils/ipodpatcher/ipodio-win32.c | |||
@@ -155,6 +155,7 @@ int ipod_close(struct ipod_t* ipod) | |||
155 | { | 155 | { |
156 | unlock_volume(ipod->dh); | 156 | unlock_volume(ipod->dh); |
157 | CloseHandle(ipod->dh); | 157 | CloseHandle(ipod->dh); |
158 | ipod->dh = INVALID_HANDLE_VALUE; | ||
158 | return 0; | 159 | return 0; |
159 | } | 160 | } |
160 | 161 | ||