From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:

* resbin.c (res_to_bin_menu): Correct computation of menu
	vs. menuex length.
	* resrc.c (define_stringtable): Add 1 to resource ID.
This commit is contained in:
Ian Lance Taylor
1997-07-30 15:22:07 +00:00
parent 9f72a94f72
commit ef573b6883
2 changed files with 8 additions and 1 deletions

View File

@ -1818,7 +1818,7 @@ res_to_bin_menu (menu, big_endian)
menuex = extended_menu (menu);
d = (struct bindata *) reswr_alloc (sizeof *d);
d->length = menuex ? 4 : 8;
d->length = menuex ? 8 : 4;
d->data = (unsigned char *) reswr_alloc (d->length);
if (! menuex)