PR binutils/13297
authorKai Tietz <kai.tietz@onevision.com>
Sat, 11 Feb 2012 15:15:34 +0000 (15:15 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Sat, 11 Feb 2012 15:15:34 +0000 (15:15 +0000)
* resrc.c (write_rc_dialog_control): Omit text dump for
EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.

binutils/ChangeLog
binutils/resrc.c

index 1ff055525f6e8450dda7f6e7012106c72c733a56..1040f9e218b631c79b2d54c42d11ed06c658fe55 100644 (file)
@@ -1,3 +1,9 @@
+2012-02-11  Kai Tietz  <ktietz@redhat.com>
+
+       PR binutils/13297
+       * resrc.c (write_rc_dialog_control): Omit text dump for
+       EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.
+
 2012-02-09  Alan Modra  <amodra@gmail.com>
 
        * sysdep.h: Include sys/stat.h here.
index 702d2f18183999cda0eb942ca9418d1bc1a0ebb8..9d1abbc94e0095cbb8af4dd905db5b4c9ba00c34 100644 (file)
@@ -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);
This page took 0.050704 seconds and 4 git commands to generate.