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
57577fb2
Commit
57577fb2
authored
Oct 20, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Don't leak Imagelist handle.
parent
e72ed1c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
header.c
dlls/comctl32/tests/header.c
+8
-7
No files found.
dlls/comctl32/tests/header.c
View file @
57577fb2
...
...
@@ -954,7 +954,7 @@ static void test_hdm_sethotdivider(HWND hParent)
static
void
test_hdm_imageMessages
(
HWND
hParent
)
{
HIMAGELIST
hImageList
=
ImageList_Create
(
4
,
4
,
0
,
1
,
0
);
HIMAGELIST
hIm
ageListRetVa
l
;
HIMAGELIST
hIml
;
HWND
hChild
;
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -964,14 +964,15 @@ static void test_hdm_imageMessages(HWND hParent)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
hIm
ageListRetVa
l
=
(
HIMAGELIST
)
SendMessage
(
hChild
,
HDM_SETIMAGELIST
,
0
,
(
LPARAM
)
hImageList
);
ok
(
hIm
ageListRetVal
==
NULL
,
"Expected NULL, got %p
\n
"
,
hImageListRetVa
l
);
hIml
=
(
HIMAGELIST
)
SendMessage
(
hChild
,
HDM_SETIMAGELIST
,
0
,
(
LPARAM
)
hImageList
);
ok
(
hIm
l
==
NULL
,
"Expected NULL, got %p
\n
"
,
hIm
l
);
hIm
ageListRetVa
l
=
(
HIMAGELIST
)
SendMessage
(
hChild
,
HDM_GETIMAGELIST
,
0
,
0
);
ok
(
hIm
ageListRetVal
!=
NULL
,
"Expected non-NULL handle, got %p
\n
"
,
hImageListRetVa
l
);
hIml
=
(
HIMAGELIST
)
SendMessage
(
hChild
,
HDM_GETIMAGELIST
,
0
,
0
);
ok
(
hIm
l
!=
NULL
,
"Expected non-NULL handle, got %p
\n
"
,
hIm
l
);
hImageListRetVal
=
(
HIMAGELIST
)
SendMessage
(
hChild
,
HDM_CREATEDRAGIMAGE
,
0
,
0
);
ok
(
hImageListRetVal
!=
NULL
,
"Expected non-NULL handle, got %p
\n
"
,
hImageListRetVal
);
hIml
=
(
HIMAGELIST
)
SendMessage
(
hChild
,
HDM_CREATEDRAGIMAGE
,
0
,
0
);
ok
(
hIml
!=
NULL
,
"Expected non-NULL handle, got %p
\n
"
,
hIml
);
ImageList_Destroy
(
hIml
);
ok_sequence
(
sequences
,
HEADER_SEQ_INDEX
,
imageMessages_seq
,
"imageMessages sequence testing"
,
FALSE
);
...
...
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