diff options
author | jbevain <jbevain@gmail.com> | 2010-06-01 20:43:32 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2010-06-01 20:43:32 +0400 |
commit | 95b304278c4cd15a48b3d907284b4f7ac642cfa8 (patch) | |
tree | 385e253bcbabae456d580f19664a545985fbebe9 /Mono.Cecil.PE | |
parent | c84ec15b7c71728b6929abcbee9e49c74aa95f71 (diff) |
deal with assemblies without a blob heap
Diffstat (limited to 'Mono.Cecil.PE')
-rw-r--r-- | Mono.Cecil.PE/ImageReader.cs | 2 |
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; |