From a80dbfa76b15784f86cd6bf5b79e3ae4f27048f3 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 30 Dec 2020 00:07:47 +1000 Subject: [PATCH] Fix crash when clicking on column headers in FirmwaresConfig on Mono --- src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs b/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs index e11e3efdd3..15233dea2c 100644 --- a/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs +++ b/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs @@ -245,6 +245,8 @@ namespace BizHawk.Client.EmuHawk /// unmanaged call failed public static void SetSortIcon(this ListView listViewControl, int columnIndex, SortOrder order) { + if (OSTailoredCode.IsUnixHost) return; + const int LVM_GETHEADER = 4127; const int HDM_GETITEM = 4619; const int HDM_SETITEM = 4620;