From 56bce981809ab06808bde52e898195fe34c52dab Mon Sep 17 00:00:00 2001 From: Exter-N Date: Sat, 28 Feb 2026 19:22:04 +0100 Subject: [PATCH] Catch SEH exceptions in the Cloud API wrapper --- Penumbra/Interop/CloudApi.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Penumbra/Interop/CloudApi.cs b/Penumbra/Interop/CloudApi.cs index 603d4c9fa..a06833161 100644 --- a/Penumbra/Interop/CloudApi.cs +++ b/Penumbra/Interop/CloudApi.cs @@ -25,6 +25,11 @@ public static bool IsCloudSynced(string path) Penumbra.Log.Debug($"{nameof(CfGetSyncRootInfoByPath)} threw EntryPointNotFoundException"); return false; } + catch (SEHException e) + { + Penumbra.Log.Debug($"{nameof(CfGetSyncRootInfoByPath)} threw SEHException:\n{e}"); + return false; + } Penumbra.Log.Debug($"{nameof(CfGetSyncRootInfoByPath)} returned HRESULT 0x{hr:X8}"); if (hr < 0)