diff options
-rw-r--r-- | plugins/PluginUpdater/src/checksum.cpp | 2 | ||||
-rw-r--r-- | tools/checksum/checksum.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/checksum.cpp b/plugins/PluginUpdater/src/checksum.cpp index 657b8f6c93..e76f42639d 100644 --- a/plugins/PluginUpdater/src/checksum.cpp +++ b/plugins/PluginUpdater/src/checksum.cpp @@ -169,7 +169,7 @@ int CalculateModuleHash(const TCHAR *filename, char* szDest) {
DWORD shift = dbgAddr - pISH->VirtualAddress;
pDBG = (PIMAGE_DEBUG_DIRECTORY)( ptr + shift + pISH->PointerToRawData );
- pDBG->TimeDateStamp = 0;
+ memset(pDBG, 0, pDBG->SizeOfData);
}
// erase export timestamp
diff --git a/tools/checksum/checksum.cpp b/tools/checksum/checksum.cpp index 9778a2c66c..c8089e79c8 100644 --- a/tools/checksum/checksum.cpp +++ b/tools/checksum/checksum.cpp @@ -195,7 +195,7 @@ int PEChecksum( TCHAR *filename, mir_md5_byte_t digest[16] ) {
DWORD shift = dbgAddr - pISH->VirtualAddress;
pDBG = (PIMAGE_DEBUG_DIRECTORY)( ptr + shift + pISH->PointerToRawData );
- pDBG->TimeDateStamp = 0;
+ memset(pDBG, 0, pDBG->SizeOfData);
#ifdef DEBUG_SECTIONS
if ( debug )
|