bug-binutils
[Top][All Lists]
Advanced

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

Re: windres bug: "TOOLBAR" rescoure compiled wrong; version field missin


From: nick clifton
Subject: Re: windres bug: "TOOLBAR" rescoure compiled wrong; version field missing => struct data shifted fatally
Date: Fri, 20 Jan 2012 08:55:16 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0

Hi Robert,

windres.exe forgets to write the version 0x0001 at the beginning of the
struct data

Please could you open a bug report for this problem at:

http://sourceware.org/bugzilla/

If you can include a full test case to reproduce the problem that would be helpful as well.

correct RC.exe compiled resource:

 >>> win32api.LoadResource(hg, 241, 1200)
'\x01\x00\x15\x00\x14\x00\x1a\x00[\x1bX\x1bY\x1bZ\x1b\x00\x00b\x1bc\x1bd\x1b\x00\x00\\\x9c_\x1b`\x1b\x00\x00\x84\x1c\x00\x00D\x1f]\x1b^\x1b\x00\x00\x8a\x1b\x9e\x1b
\x1c\x00\x00\x8c\x1b\x93\x1b\x91\x1b'

windres compiled:

 >>> win32api.LoadResource(hg, 241,1200)
'\x15\x00\x00\x00\x14\x00\x00\x00\x1a\x00\x00\x00[\x1b\x00\x00X\x1b\x00\x00Y\x1b\x00\x00Z\x1b\x00\x00\x00\x00\x00\x00b\x1b\x00\x00c\x1b\x00\x00d\x1b\x00\x00\x00\x00\x00\x00\\\x9c\x00\x00_\x1b....................'

I am not a Windows expert, so please can you tell me if it matters that in the dumps above windres appears to be using more bytes to specify the various fields than RC. Eg the toolbar's width is given as \x15\00 by RC but as \x15\x00\x00\x00 by windres).

Cheers
  Nick



reply via email to

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