From 8a6ceff3762784d99f57e2f7f20149f97b6d82c7 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Thu, 14 Apr 2022 22:22:22 +0200 Subject: 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 --- utils/sansapatcher/sansaio-win32.c | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/sansapatcher/sansaio-win32.c') diff --git a/utils/sansapatcher/sansaio-win32.c b/utils/sansapatcher/sansaio-win32.c index ee6a8cd93d..be250136f9 100644 --- a/utils/sansapatcher/sansaio-win32.c +++ b/utils/sansapatcher/sansaio-win32.c @@ -147,6 +147,7 @@ int sansa_close(struct sansa_t* sansa) { unlock_volume(sansa->dh); CloseHandle(sansa->dh); + sansa->dh = INVALID_HANDLE_VALUE; return 0; } -- cgit v1.2.3