diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2012-02-11 15:15:34 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2012-02-11 15:15:34 +0000 |
commit | dd1caf785acdbd12e8fe7621d3be6edcd49b5a64 (patch) | |
tree | ad05e19b8bba56e3b06a1cb14ac4f17f01e8c079 /binutils/resrc.c | |
parent | 98a34a6bfe536847d5b36868975a41ec816ea803 (diff) | |
download | binutils-redhat-dd1caf785acdbd12e8fe7621d3be6edcd49b5a64.tar.gz |
PR binutils/13297
* resrc.c (write_rc_dialog_control): Omit text dump for
EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.
Diffstat (limited to 'binutils/resrc.c')
-rw-r--r-- | binutils/resrc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c index 702d2f1818..9d1abbc94e 100644 --- a/binutils/resrc.c +++ b/binutils/resrc.c @@ -2650,7 +2650,13 @@ write_rc_dialog_control (FILE *e, const rc_dialog_control *control) ci = NULL; } - if (control->text.named || control->text.u.id != 0) + /* For EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR don't dump text. */ + if ((control->text.named || control->text.u.id != 0) + && (!ci + || (ci->class != CTL_EDIT + && ci->class != CTL_COMBOBOX + && ci->class != CTL_LISTBOX + && ci->class != CTL_SCROLLBAR))) { fprintf (e, " "); res_id_print (e, control->text, 1); |