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
eaa939e9
Commit
eaa939e9
authored
Oct 24, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Release Imagelist handles when no needed anymore.
parent
31ae6a90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
toolbar.c
dlls/comctl32/tests/toolbar.c
+3
-0
No files found.
dlls/comctl32/tests/toolbar.c
View file @
eaa939e9
...
...
@@ -373,6 +373,8 @@ static void test_add_bitmap(void)
addbmp
.
hInst
=
HINST_COMMCTRL
;
addbmp
.
nID
=
IDB_STD_SMALL_COLOR
;
rebuild_toolbar
(
&
hToolbar
);
ImageList_Destroy
(
himl
);
ok
(
SendMessageA
(
hToolbar
,
TB_ADDBITMAP
,
1
,
(
LPARAM
)
&
addbmp
)
==
0
,
"TB_ADDBITMAP - unexpected return
\n
"
);
CHECK_IMAGELIST
(
15
,
16
,
16
);
compare
((
int
)
SendMessageA
(
hToolbar
,
TB_GETBUTTONSIZE
,
0
,
0
),
MAKELONG
(
23
,
22
),
"%x"
);
...
...
@@ -980,6 +982,7 @@ static void test_sizes(void)
rebuild_toolbar
(
&
hToolbar
);
ImageList_Destroy
(
himl
);
ImageList_Destroy
(
himl2
);
SendMessageA
(
hToolbar
,
TB_ADDBUTTONS
,
1
,
(
LPARAM
)
&
buttons3
[
3
]);
ok
(
SendMessageA
(
hToolbar
,
TB_GETBUTTONSIZE
,
0
,
0
)
==
MAKELONG
(
27
,
39
),
"Unexpected button size
\n
"
);
...
...
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