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

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbevain <jbevain@gmail.com>2010-06-01 20:43:32 +0400
committerjbevain <jbevain@gmail.com>2010-06-01 20:43:32 +0400
commit95b304278c4cd15a48b3d907284b4f7ac642cfa8 (patch)
tree385e253bcbabae456d580f19664a545985fbebe9 /Mono.Cecil.PE
parentc84ec15b7c71728b6929abcbee9e49c74aa95f71 (diff)
deal with assemblies without a blob heap
Diffstat (limited to 'Mono.Cecil.PE')
-rw-r--r--Mono.Cecil.PE/ImageReader.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mono.Cecil.PE/ImageReader.cs b/Mono.Cecil.PE/ImageReader.cs
index e64aa6c..4f0a3e4 100644
--- a/Mono.Cecil.PE/ImageReader.cs
+++ b/Mono.Cecil.PE/ImageReader.cs
@@ -454,7 +454,7 @@ namespace Mono.Cecil.PE {
uint offset = (uint) BaseStream.Position - image.MetadataSection.PointerToRawData; // header
int stridx_size = image.StringHeap.IndexSize;
- int blobidx_size = image.BlobHeap.IndexSize;
+ int blobidx_size = image.BlobHeap != null ? image.BlobHeap.IndexSize : 2;
var heap = image.TableHeap;
var tables = heap.Tables;