Skip to content

Commit 81c8928

Browse files
authored
Merge pull request #172 from Visionaid-International-Ltd/reliability
Initial reliability fixes
2 parents 6b9fd67 + dbc5248 commit 81c8928

File tree

3 files changed

+61
-201
lines changed

3 files changed

+61
-201
lines changed

sources/OpenMcdf/CFStream.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public byte[] GetData()
131131
{
132132
CheckDisposed();
133133

134-
return CompoundFile.GetData(this);
134+
return CompoundFile.GetData(DirEntry);
135135
}
136136

137137
/// <summary>
@@ -164,7 +164,7 @@ public byte[] GetData()
164164
public int Read(byte[] buffer, long position, int count)
165165
{
166166
CheckDisposed();
167-
return CompoundFile.ReadData(this, position, buffer, 0, count);
167+
return CompoundFile.ReadData(DirEntry, position, buffer, 0, count);
168168
}
169169

170170
/// <summary>
@@ -198,7 +198,7 @@ public int Read(byte[] buffer, long position, int count)
198198
internal int Read(byte[] buffer, long position, int offset, int count)
199199
{
200200
CheckDisposed();
201-
return CompoundFile.ReadData(this, position, buffer, offset, count);
201+
return CompoundFile.ReadData(DirEntry, position, buffer, offset, count);
202202
}
203203

204204
/// <summary>

0 commit comments

Comments
 (0)