bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

windres reports parse error on second language block in version info res


From: Pascal Haible
Subject: windres reports parse error on second language block in version info resource
Date: Fri, 02 Aug 2002 20:46:08 +0200

Hi,

Synopsis:

windres reports a parse error when it encounters a second language block
within a versin info resource.


Repeat by:

D:\mv\gcc>windres --version
GNU windres 2.11.90

D:\mv\gcc>windres
#include <windows.h>
#include <winver.h>
1 VERSIONINFO
 FILEVERSION 3,5,0,0
 PRODUCTVERSION 3,5,0,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0xbL
#else
 FILEFLAGS 0xaL
#endif
 FILEOS 0x10001L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904E4"
        BEGIN
            VALUE "Comments", "...\0"
            VALUE "CompanyName", "...\0"
            VALUE "FileDescription", "...\0"
            VALUE "FileVersion", "0.0\0"
            VALUE "InternalName", "...\0"
            VALUE "LegalCopyright", "...\0"
            VALUE "LegalTrademarks", "...\0"
            VALUE "OriginalFilename", "\0"
            VALUE "ProductName", "...\0"
            VALUE "ProductVersion", "3.6\0"
        END
        BLOCK "041104E4"
        BEGIN
            VALUE "Comments", "...\0"
            VALUE "CompanyName", "...\0"
            VALUE "FileDescription", "...\0"
            VALUE "FileVersion", "0.0\0"
            VALUE "InternalName", "...\0"
            VALUE "LegalCopyright", "...\0"
            VALUE "LegalTrademarks", "...\0"
            VALUE "OriginalFilename", "\0"
            VALUE "ProductName", "...\0"
            VALUE "ProductVersion", "3.6\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 0x04E4, 0x411, 0x04E4
    END
END
^Z
windres: :31: parse error

D:\mv\gcc>

Line 31 is the line
        BLOCK "041104E4"


This example is stripped down from Samples\Begin\Generic\generic.rc
from the Microsoft Platform SDK, so this should be a valid construct.

Thanks,

Pascal Haible






reply via email to

[Prev in Thread] Current Thread [Next in Thread]