diff options
author | Dmitry Timoshkov <dmitry@baikal.ru> | 2017-01-18 11:40:06 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-01-18 11:40:06 +0000 |
commit | 6bb21700abb61cdb62a3d9fdf417971d528d5a37 (patch) | |
tree | 877efcd7aa8ff71c3976e74feae495792f43a55f /binutils/testsuite | |
parent | 01fabda4d46b34b2b02fb5a447943ab281c8ac8c (diff) | |
download | gdb-6bb21700abb61cdb62a3d9fdf417971d528d5a37.zip gdb-6bb21700abb61cdb62a3d9fdf417971d528d5a37.tar.gz gdb-6bb21700abb61cdb62a3d9fdf417971d528d5a37.tar.bz2 |
Stop the (optional) dialong control data from being aligned when parsing/writing windows resource files.
binutils* resbin.c: Optional dialog control data immediately follow
the control description without alignment.
* testsuite/binutils-all/windres/controldata.rc: New test.
source.
* testsuite/binutils-all/windres/controldata.rsd: New test.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/windres/controldata.rc | 6 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/windres/controldata.rsd | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/windres/controldata.rc b/binutils/testsuite/binutils-all/windres/controldata.rc new file mode 100644 index 0000000..67b8df2 --- /dev/null +++ b/binutils/testsuite/binutils-all/windres/controldata.rc @@ -0,0 +1,6 @@ +1 DIALOGEX DISCARDABLE 0, 0, 200, 150 +STYLE 0 +BEGIN + CONTROL "evenlengthtext", -1, "TESTCONTROL", 0x50810000, 10,10,100,50 { 1,2,3,4,5 } + CONTROL "oddlengthtext", -1, "TESTCONTROL", 0x50810000, 10,60,100,50 { 1,2,3,4,5 } +END diff --git a/binutils/testsuite/binutils-all/windres/controldata.rsd b/binutils/testsuite/binutils-all/windres/controldata.rsd new file mode 100644 index 0000000..1357e05 --- /dev/null +++ b/binutils/testsuite/binutils-all/windres/controldata.rsd @@ -0,0 +1,18 @@ + 0000 00000000 20000000 ffff0000 ffff0000 .... ........... + 0010 00000000 00000000 00000000 00000000 ................ + 0020 d4000000 20000000 ffff0500 ffff0100 .... ........... + 0030 00000000 30100904 00000000 00000000 ....0........... + 0040 0100ffff 00000000 00000000 00000000 ................ + 0050 02000000 0000c800 96000000 00000000 ................ + 0060 00000000 00000000 00008150 0a000a00 ...........P.... + 0070 64003200 ffffffff 54004500 53005400 d.2.....T.E.S.T. + 0080 43004f00 4e005400 52004f00 4c000000 C.O.N.T.R.O.L... + 0090 65007600 65006e00 6c006500 6e006700 e.v.e.n.l.e.n.g. + 00a0 74006800 74006500 78007400 00000a00 t.h.t.e.x.t..... + 00b0 01000200 03000400 05000000 00000000 ................ + 00c0 00000000 00008150 0a003c00 64003200 .......P..<.d.2. + 00d0 ffffffff 54004500 53005400 43004f00 ....T.E.S.T.C.O. + 00e0 4e005400 52004f00 4c000000 6f006400 N.T.R.O.L...o.d. + 00f0 64006c00 65006e00 67007400 68007400 d.l.e.n.g.t.h.t. + 0100 65007800 74000000 0a000100 02000300 e.x.t........... + 0110 04000500 .... |