From ef573b6883c99d2162cca8d68a775a00711a8017 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 30 Jul 1997 15:22:07 +0000 Subject: [PATCH] From Ton van Overbeek : * resbin.c (res_to_bin_menu): Correct computation of menu vs. menuex length. * resrc.c (define_stringtable): Add 1 to resource ID. --- binutils/ChangeLog | 7 +++++++ binutils/resbin.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 579ce278774..e317514b68c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +Wed Jul 30 11:21:06 1997 Ian Lance Taylor + + From Ton van Overbeek : + * resbin.c (res_to_bin_menu): Correct computation of menu + vs. menuex length. + * resrc.c (define_stringtable): Add 1 to resource ID. + Tue Jul 29 11:06:03 1997 Ian Lance Taylor * resbin.c (bin_to_res_string): Correct adjustment of data and diff --git a/binutils/resbin.c b/binutils/resbin.c index 24432d27eae..7931dbf7a9e 100644 --- a/binutils/resbin.c +++ b/binutils/resbin.c @@ -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) -- 2.30.2