1
0
Fork 0
forked from len0rd/rockbox

rbutil: Fix sansapatcher bootloader install on Windows.

During bootloader installation sansapatcher disk access is accidentially
set up twice. This is not a problem except on Windows, which will abort
with a "permission denied" error.

This is basically the same problem as for ipodpatcher bootloader install.

Change-Id: I03220e17d0e00a15fff23c02aba7da93d4781964
This commit is contained in:
Dominik Riebeling 2022-04-14 22:22:22 +02:00
parent cc2f364926
commit 8a6ceff376
4 changed files with 27 additions and 20 deletions

View file

@ -110,6 +110,7 @@ int sansa_reopen_rw(struct sansa_t* sansa)
int sansa_close(struct sansa_t* sansa)
{
close(sansa->dh);
sansa->dh = -1;
return 0;
}