From 23a3a49a2a1a5d842f124daf6f4a1ddc10fcbb65 Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 15:06:05 +0000 Subject: [PATCH] Fix: Handle IOException when reading Windows INI file --- src/Files.App/Services/Windows/WindowsIniService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.App/Services/Windows/WindowsIniService.cs b/src/Files.App/Services/Windows/WindowsIniService.cs index eabf759d7db9..0ab2d5a0802f 100644 --- a/src/Files.App/Services/Windows/WindowsIniService.cs +++ b/src/Files.App/Services/Windows/WindowsIniService.cs @@ -20,7 +20,7 @@ public List GetData(string filePath) .Where(line => !line.StartsWith(';') && !string.IsNullOrEmpty(line)) .ToList(); } - catch (Exception ex) when (ex is UnauthorizedAccessException || ex is SystemIO.FileNotFoundException) + catch (Exception ex) when (ex is UnauthorizedAccessException || ex is SystemIO.FileNotFoundException || ex is SystemIO.IOException) { return []; }