mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
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:
parent
cbf7d78a26
commit
3e3b7513a1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user