[PATCH] windres: (8) print style even if it is 0
Gunnar Degnbol
degnbol@danbbs.dk
Tue Mar 19 12:54:00 GMT 2002
windres does not print the STYLE if it is 0. No style is different from
STYLE 0, as this sets the default style flags (see patch 1).
ChangeLog:
2002-03-19 Gunnar Degnbol <degnbol@danbbs.dk>
* resrc.c: print style even if it is 0
printstyle.rc:
101 DIALOG DISCARDABLE 0, 0, 186, 95
STYLE 0
BEGIN
DEFPUSHBUTTON "OK",1,129,7,50,14
END
Before patch:
$ rc printstyle.rc
$ /bin/windres -i printstyle.res
LANGUAGE 9, 4
101 DIALOG MOVEABLE PURE DISCARDABLE 0, 0, 186, 95
CAPTION ""
BEGIN
DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14, 0x50010001
END
After patch:
$ /usr/local/bin/windres -i defstyle.res
LANGUAGE 9, 1
101 DIALOG MOVEABLE PURE DISCARDABLE 0, 0, 186, 95
STYLE 0x0
BEGIN
DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14, 0x50010001
END
printstyle.patch:
--- binutils/resrc.c Mon Mar 18 21:29:13 2002
+++ binutils.new/resrc.c Mon Mar 18 21:29:25 2002
@@ -2053,8 +2053,7 @@
{
const struct dialog_control *control;
- if (dialog->style != 0)
- fprintf (e, "STYLE 0x%lx\n", dialog->style);
+ fprintf (e, "STYLE 0x%lx\n", dialog->style);
if (dialog->exstyle != 0)
fprintf (e, "EXSTYLE 0x%lx\n", dialog->exstyle);
if ((dialog->class.named && dialog->class.u.n.length > 0)
More information about the Binutils
mailing list