How to Fix Corruption in Resource Version Files?


The file property lists information but it seems somehow corrupted.

corrupted-file-info How to Fix Corruption in Resource Version Files? tips

corrupted-file-info

The tool sigcheck.exe also verifies this:

sigcheck-error How to Fix Corruption in Resource Version Files? tips

sigcheck-error

The cause of this is a missing \0 at the end of the string literal in the *.rc resource files:

1 VERSIONINFO 
FILEVERSION 3,0,7,9997  
PRODUCTVERSION 3,0 
FILEFLAGSMASK 0x3fL 
FILEFLAGS 0x0L 
FILEOS 0x4L 
FILETYPE 0x1L 
FILESUBTYPE 0x0L 
BEGIN 
   BLOCK "StringFileInfo" 
   BEGIN 
      BLOCK "080904e4" 
      BEGIN 
         VALUE "LegalCopyright", "Copyright (c) XXXX 2008~2016\0" 
         VALUE "CompanyName", "YYYYYY.\0" 
         VALUE "ProductVersion", "3.0\0" 
         VALUE "InternalName", "ZZZZZ.dll (x86-UNICODE)\0" 
         VALUE "OriginalFilename", "ZZZZZ.dll\0" 
         VALUE "ProductName", "(x86-UNICODE) ZZZZZ Propagation Engine\0" 
         VALUE "FileDescription", "(x86-UNICODE) ZZZZZ Propagation Engine\0" 
         VALUE "FileVersion", "3.0.7.9997 \0" 
      END 
   END 
   BLOCK "VarFileInfo" 
   BEGIN 
      VALUE "Translation", 0x809, 1252 
   END 
END 

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
239 words
Last Post: Algorithms to Merge Two Sorted Array
Next Post: How to Determine Linked List Cycle in C/C++?

The Permanent URL is: How to Fix Corruption in Resource Version Files?

Leave a Reply