mirror of
https://github.com/claunia/libexeinfo.git
synced 2025-12-16 19:14:24 +00:00
Correct decoding of OS/2 accelerators in NE.
This commit is contained in:
@@ -267,6 +267,8 @@ namespace libexeinfo
|
|||||||
byte[] accelBytes = new byte[Marshal.SizeOf(typeof(Os2Accelerator))];
|
byte[] accelBytes = new byte[Marshal.SizeOf(typeof(Os2Accelerator))];
|
||||||
if(pos + accelBytes.Length > data.Length) break;
|
if(pos + accelBytes.Length > data.Length) break;
|
||||||
|
|
||||||
|
Array.Copy(data, pos, accelBytes, 0, accelBytes.Length);
|
||||||
|
|
||||||
table.Accelerators[i] = BigEndianMarshal.ByteArrayToStructureLittleEndian<Os2Accelerator>(accelBytes);
|
table.Accelerators[i] = BigEndianMarshal.ByteArrayToStructureLittleEndian<Os2Accelerator>(accelBytes);
|
||||||
pos += accelBytes.Length;
|
pos += accelBytes.Length;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user