Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2015-02-20 20:45:42 +0300
committerMarek Safar <marek.safar@gmail.com>2015-02-20 20:46:31 +0300
commitcfbb82b747328102ba756151eb3d484cb88de81a (patch)
treeee1e163cfbbd76aa282145090fa457e6b1828f4e /mcs/class/corlib
parent49d79191cafcdfda73d8d3c440f50ef5e2736da4 (diff)
[corlib] Fixes build with old UnmanagedMemoryStream
Diffstat (limited to 'mcs/class/corlib')
-rw-r--r--mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs2
-rw-r--r--mcs/class/corlib/System.Reflection/Assembly.cs2
-rw-r--r--mcs/class/corlib/System.Resources/ResourceReader.cs2
3 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs b/mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs
index b44767bdf05..51b94b8aaaf 100644
--- a/mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs
+++ b/mcs/class/corlib/System.IO/UnmanagedMemoryStream.cs
@@ -41,7 +41,7 @@ namespace System.IO
public class UnmanagedMemoryStream : Stream
{
long length;
- bool closed;
+ internal bool closed;
long capacity;
FileAccess fileaccess;
IntPtr initial_pointer;
diff --git a/mcs/class/corlib/System.Reflection/Assembly.cs b/mcs/class/corlib/System.Reflection/Assembly.cs
index 4e10838b103..c3bb5a3fbf1 100644
--- a/mcs/class/corlib/System.Reflection/Assembly.cs
+++ b/mcs/class/corlib/System.Reflection/Assembly.cs
@@ -70,7 +70,7 @@ namespace System.Reflection {
protected override void Dispose (bool disposing)
{
- if (_isOpen) {
+ if (!closed) {
/*
* The returned pointer points inside metadata, so
* we have to increase the refcount of the module, and decrease
diff --git a/mcs/class/corlib/System.Resources/ResourceReader.cs b/mcs/class/corlib/System.Resources/ResourceReader.cs
index 3bc3b47e510..4acd3b53256 100644
--- a/mcs/class/corlib/System.Resources/ResourceReader.cs
+++ b/mcs/class/corlib/System.Resources/ResourceReader.cs
@@ -109,7 +109,7 @@ namespace System.Resources
protected override void Dispose (bool disposing)
{
- if (_isOpen) {
+ if (!closed) {
Marshal.FreeHGlobal (ptr);
}