Use IntPtr.Size instead of a constant '4', as the size is 8 in a 64-bit environment. Fixes spellcheck on Linux 64-bit.

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@592 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
hawke42 2011-08-23 16:05:41 +00:00
parent cbf7d78a26
commit 3e3b7513a1

View File

@ -42,7 +42,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
List<string> results = new List<string>();
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);
}