diff options
Diffstat (limited to 'src/zap/zapheaders.h')
-rw-r--r-- | src/zap/zapheaders.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zap/zapheaders.h b/src/zap/zapheaders.h index 0755c0ed2d..f966ced1b1 100644 --- a/src/zap/zapheaders.h +++ b/src/zap/zapheaders.h @@ -249,7 +249,12 @@ public: virtual DWORD GetSize() { +#if defined(NO_NGENPDB) + return sizeof(IMAGE_DEBUG_DIRECTORY) * m_nDebugDirectory; +#else + // Add one for NGen PDB debug directory entry return sizeof(IMAGE_DEBUG_DIRECTORY) * (m_nDebugDirectory + 1); +#endif // NO_NGENPDB } virtual UINT GetAlignment() |