summaryrefslogtreecommitdiff
path: root/src/utilcode/pedecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utilcode/pedecoder.cpp')
-rw-r--r--src/utilcode/pedecoder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utilcode/pedecoder.cpp b/src/utilcode/pedecoder.cpp
index e5e8ddce67..ddd65d390d 100644
--- a/src/utilcode/pedecoder.cpp
+++ b/src/utilcode/pedecoder.cpp
@@ -445,7 +445,6 @@ BOOL PEDecoder::HasWriteableSections() const
CONTRACT_CHECK
{
INSTANCE_CHECK;
- PRECONDITION(CheckNTHeaders());
PRECONDITION(CheckFormat());
NOTHROW;
GC_NOTRIGGER;
@@ -454,7 +453,7 @@ BOOL PEDecoder::HasWriteableSections() const
}
CONTRACT_CHECK_END;
- PTR_IMAGE_SECTION_HEADER pSection = FindFirstSection();
+ PTR_IMAGE_SECTION_HEADER pSection = FindFirstSection(FindNTHeaders());
_ASSERTE(pSection != NULL);
PTR_IMAGE_SECTION_HEADER pSectionEnd = pSection + VAL16(FindNTHeaders()->FileHeader.NumberOfSections);