Merge pull request #4256 from yizhang82/chararray_fix
authorYi Zhang (CLR) <yzha@microsoft.com>
Sun, 10 Apr 2016 01:13:51 +0000 (18:13 -0700)
committerYi Zhang (CLR) <yzha@microsoft.com>
Sun, 10 Apr 2016 01:13:51 +0000 (18:13 -0700)
commit88f55f5fe9ae57c0e173d87e7cb4c5a0c4da6d02
tree66e542ce67b80fc6371d7a2b611e14d01120851a
parentc835bdc46cd2c39ae0666af56b4191b4090610b7
parentbaf7569a45d83237bd933acfa8a8a568ca7c5e33
Merge pull request #4256 from yizhang82/chararray_fix

Change Marshal.SizeOf to sizeof to calculate buffer size because Marshal.Copy copies managed contents, while Marshal.SizeOf gives native size. Fix #4254