Correct decoding of OS/2 accelerators in NE.

This commit is contained in:
2018-03-04 06:59:38 +00:00
parent f82b64c02e
commit 4be0e9884c

View File

@@ -267,6 +267,8 @@ namespace libexeinfo
byte[] accelBytes = new byte[Marshal.SizeOf(typeof(Os2Accelerator))];
if(pos + accelBytes.Length > data.Length) break;
Array.Copy(data, pos, accelBytes, 0, accelBytes.Length);
table.Accelerators[i] = BigEndianMarshal.ByteArrayToStructureLittleEndian<Os2Accelerator>(accelBytes);
pos += accelBytes.Length;
}