Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
656bc70f
Commit
656bc70f
authored
Feb 16, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Feb 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Avoid variable length arrays (MSVC).
parent
ed761920
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bitmap.c
dlls/gdi32/tests/bitmap.c
+1
-1
pen.c
dlls/gdi32/tests/pen.c
+2
-2
No files found.
dlls/gdi32/tests/bitmap.c
View file @
656bc70f
...
...
@@ -1588,7 +1588,7 @@ static BOOL is_black_pen( COLORREF fg, COLORREF bg, int r, int g, int b )
static
void
test_bitmap_colors
(
HDC
hdc
,
COLORREF
fg
,
COLORREF
bg
,
int
r
,
int
g
,
int
b
)
{
static
const
WORD
pattern_bits
[]
=
{
0x5555
,
0xaaaa
,
0x5555
,
0xaaaa
,
0x5555
,
0xaaaa
,
0x5555
,
0xaaaa
};
char
buffer
[
FIELD_OFFSET
(
BITMAPINFO
,
bmiColors
[
256
]
)];
char
buffer
[
FIELD_OFFSET
(
BITMAPINFO
,
bmiColors
)
+
256
*
sizeof
(
RGBQUAD
)];
BITMAPINFO
*
info
=
(
BITMAPINFO
*
)
buffer
;
RGBQUAD
*
colors
=
info
->
bmiColors
;
WORD
bits
[
16
];
...
...
dlls/gdi32/tests/pen.c
View file @
656bc70f
...
...
@@ -512,7 +512,7 @@ static void test_ps_userstyle(void)
LOGBRUSH
lb
;
HPEN
pen
;
INT
size
,
i
;
char
buffer
[
offsetof
(
EXTLOGPEN
,
elpStyleEntry
[
16
]
)];
char
buffer
[
offsetof
(
EXTLOGPEN
,
elpStyleEntry
)
+
16
*
sizeof
(
DWORD
)];
EXTLOGPEN
*
ext_pen
=
(
EXTLOGPEN
*
)
buffer
;
lb
.
lbColor
=
0x00ff0000
;
...
...
@@ -569,7 +569,7 @@ static void test_ps_userstyle(void)
static
void
test_brush_pens
(
void
)
{
char
buffer
[
offsetof
(
EXTLOGPEN
,
elpStyleEntry
[
16
]
)];
char
buffer
[
offsetof
(
EXTLOGPEN
,
elpStyleEntry
)
+
16
*
sizeof
(
DWORD
)];
EXTLOGPEN
*
elp
=
(
EXTLOGPEN
*
)
buffer
;
LOGBRUSH
lb
;
HPEN
pen
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment