fix: call PInvoke DispatchMessageW if hook is already disposed

This commit is contained in:
goaaats 2022-06-27 20:41:49 +02:00
parent ac7f3ea5d8
commit e9cd7e0273
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -1070,7 +1070,7 @@ namespace Dalamud.Interface.Internal
return res.Value; return res.Value;
} }
return this.dispatchMessageWHook.Original(ref msg); return this.dispatchMessageWHook.IsDisposed ? User32.DispatchMessage(ref msg) : this.dispatchMessageWHook.Original(ref msg);
} }
private IntPtr ResizeBuffersDetour(IntPtr swapChain, uint bufferCount, uint width, uint height, uint newFormat, uint swapChainFlags) private IntPtr ResizeBuffersDetour(IntPtr swapChain, uint bufferCount, uint width, uint height, uint newFormat, uint swapChainFlags)