Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ab554480
Commit
ab554480
authored
Dec 11, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Get rid of a temp buffer.
parent
1d004dda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
imagelist.c
dlls/comctl32/tests/imagelist.c
+9
-10
No files found.
dlls/comctl32/tests/imagelist.c
View file @
ab554480
...
...
@@ -782,22 +782,21 @@ static void check_ilhead_data(const char *ilh_data, INT cx, INT cy, INT cur, INT
static
HBITMAP
create_bitmap
(
INT
cx
,
INT
cy
,
COLORREF
color
,
const
char
*
comment
)
{
HDC
hdc
;
char
bmibuf
[
sizeof
(
BITMAPINFO
)
+
256
*
sizeof
(
RGBQUAD
)];
BITMAPINFO
*
bmi
=
(
BITMAPINFO
*
)
bmibuf
;
BITMAPINFO
bmi
;
HBITMAP
hbmp
,
hbmp_old
;
HBRUSH
hbrush
;
RECT
rc
=
{
0
,
0
,
cx
,
cy
};
hdc
=
CreateCompatibleDC
(
0
);
memset
(
bmi
,
0
,
sizeof
(
*
bmi
));
bmi
->
bmiHeader
.
biSize
=
sizeof
(
bmi
->
bmiHeader
);
bmi
->
bmiHeader
.
biHeight
=
cx
;
bmi
->
bmiHeader
.
biWidth
=
cy
;
bmi
->
bmiHeader
.
biBitCount
=
24
;
bmi
->
bmiHeader
.
biPlanes
=
1
;
bmi
->
bmiHeader
.
biCompression
=
BI_RGB
;
hbmp
=
CreateDIBSection
(
hdc
,
bmi
,
DIB_RGB_COLORS
,
NULL
,
NULL
,
0
);
memset
(
&
bmi
,
0
,
sizeof
(
bmi
));
bmi
.
bmiHeader
.
biSize
=
sizeof
(
bmi
.
bmiHeader
);
bmi
.
bmiHeader
.
biHeight
=
cx
;
bmi
.
bmiHeader
.
biWidth
=
cy
;
bmi
.
bmiHeader
.
biBitCount
=
24
;
bmi
.
bmiHeader
.
biPlanes
=
1
;
bmi
.
bmiHeader
.
biCompression
=
BI_RGB
;
hbmp
=
CreateDIBSection
(
hdc
,
&
bmi
,
DIB_RGB_COLORS
,
NULL
,
NULL
,
0
);
hbmp_old
=
SelectObject
(
hdc
,
hbmp
);
...
...
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