summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/IO/PinnedBufferMemoryStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/IO/PinnedBufferMemoryStream.cs')
-rw-r--r--src/mscorlib/src/System/IO/PinnedBufferMemoryStream.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mscorlib/src/System/IO/PinnedBufferMemoryStream.cs b/src/mscorlib/src/System/IO/PinnedBufferMemoryStream.cs
index 890669fa58..2cbd14f734 100644
--- a/src/mscorlib/src/System/IO/PinnedBufferMemoryStream.cs
+++ b/src/mscorlib/src/System/IO/PinnedBufferMemoryStream.cs
@@ -42,8 +42,8 @@ namespace System.IO {
_pinningHandle = new GCHandle(array, GCHandleType.Pinned);
// Now the byte[] is pinned for the lifetime of this instance.
// But I also need to get a pointer to that block of memory...
- fixed(byte* ptr = _array)
- Initialize(ptr, len, len, FileAccess.Read, true);
+ fixed(byte* ptr = &_array[0])
+ Initialize(ptr, len, len, FileAccess.Read);
}
~PinnedBufferMemoryStream()