diff --git a/src/Logic/Spellcheck/LinuxHunspell.cs b/src/Logic/Spellcheck/LinuxHunspell.cs index 0a281ae25..837c9036b 100644 --- a/src/Logic/Spellcheck/LinuxHunspell.cs +++ b/src/Logic/Spellcheck/LinuxHunspell.cs @@ -42,7 +42,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck List results = new List(); for (int i = 0; i < resultCount; i++) { - IntPtr addressCharArray = Marshal.ReadIntPtr(addressStringArray, i * 4); + IntPtr addressCharArray = Marshal.ReadIntPtr(addressStringArray, i * IntPtr.Size); string suggestion = Marshal.PtrToStringAuto(addressCharArray); results.Add(suggestion); }