PR binutils/13297
[deliverable/binutils-gdb.git] / binutils / resrc.c
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.022821 seconds and 4 git commands to generate.