Fixed bug in GetBytes method

pull/60/head
David Hall 2019-04-24 08:24:18 -06:00
parent 6531317528
commit 9c97ccfd14
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ namespace Vanara.InteropServices
{
if (startIndex < 0 || startIndex + count > Size) throw new ArgumentOutOfRangeException();
var ret = new byte[count];
Marshal.Copy(handle, ret, startIndex, count);
Marshal.Copy(handle.Offset(startIndex), ret, 0, count);
return ret;
}