This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: 'windres' bug




> VS_VERSIONINFO structure created by 'windres' (B20.1)
> cannot be read by win9x (I don't know about nt).
> Stringtable sould have a 'total length' (first word),
> 'length of value' (second word) - missing (always set to 0),
> and 'type' (third word).

I applied a patch for this from a net user just yesterday!  What a
coincidence.  I've attached a diff if you need it.

--- resbin.c    1998/10/07 01:21:02
+++ resbin.c    1999/02/18 02:52:53
@@ -2258,5 +2258,4 @@
                vsslen = 6;
 
-               put_16 (big_endian, 0, vssd->data + 2);
                put_16 (big_endian, 1, vssd->data + 4);
 
@@ -2278,4 +2277,5 @@
 
                *pp = unicode_to_bin (vs->value, big_endian);
+               put_16 (big_endian, (*pp)->length / 2, vssd->data + 2);
                length += (*pp)->length;
                vilen += (*pp)->length;


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com