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
21897a96
Commit
21897a96
authored
Aug 19, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Call interface methods properly.
parent
ab5c3ad8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
imagelist.c
dlls/comctl32/imagelist.c
+3
-3
imagelist.c
dlls/comctl32/tests/imagelist.c
+2
-2
No files found.
dlls/comctl32/imagelist.c
View file @
21897a96
...
...
@@ -3366,7 +3366,7 @@ static HRESULT WINAPI ImageListImpl_Copy(IImageList *iface, int iDst,
return
E_FAIL
;
/* TODO: Add test for IID_ImageList2 too */
if
(
FAILED
(
I
ImageList
_QueryInterface
(
punkSrc
,
&
IID_IImageList
,
if
(
FAILED
(
I
Unknown
_QueryInterface
(
punkSrc
,
&
IID_IImageList
,
(
void
**
)
&
src
)))
return
E_FAIL
;
...
...
@@ -3390,7 +3390,7 @@ static HRESULT WINAPI ImageListImpl_Merge(IImageList *iface, int i1,
TRACE
(
"(%p)->(%d %p %d %d %d %s %p)
\n
"
,
iface
,
i1
,
punk2
,
i2
,
dx
,
dy
,
debugstr_guid
(
riid
),
ppv
);
/* TODO: Add test for IID_ImageList2 too */
if
(
FAILED
(
I
ImageList
_QueryInterface
(
punk2
,
&
IID_IImageList
,
if
(
FAILED
(
I
Unknown
_QueryInterface
(
punk2
,
&
IID_IImageList
,
(
void
**
)
&
iml2
)))
return
E_FAIL
;
...
...
@@ -3523,7 +3523,7 @@ static HRESULT WINAPI ImageListImpl_SetDragCursorImage(IImageList *iface,
return
E_FAIL
;
/* TODO: Add test for IID_ImageList2 too */
if
(
FAILED
(
I
ImageList
_QueryInterface
(
punk
,
&
IID_IImageList
,
if
(
FAILED
(
I
Unknown
_QueryInterface
(
punk
,
&
IID_IImageList
,
(
void
**
)
&
iml2
)))
return
E_FAIL
;
...
...
dlls/comctl32/tests/imagelist.c
View file @
21897a96
...
...
@@ -1423,7 +1423,7 @@ static void test_iimagelist(void)
/* test reference counting on destruction */
imgl
=
(
IImageList
*
)
createImageList
(
32
,
32
);
ret
=
I
Unknown
_AddRef
(
imgl
);
ret
=
I
ImageList
_AddRef
(
imgl
);
ok
(
ret
==
2
,
"Expected 2, got %d
\n
"
,
ret
);
ret
=
ImageList_Destroy
((
HIMAGELIST
)
imgl
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
...
...
@@ -1433,7 +1433,7 @@ static void test_iimagelist(void)
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
imgl
=
(
IImageList
*
)
createImageList
(
32
,
32
);
ret
=
I
Unknown
_AddRef
(
imgl
);
ret
=
I
ImageList
_AddRef
(
imgl
);
ok
(
ret
==
2
,
"Expected 2, got %d
\n
"
,
ret
);
ret
=
ImageList_Destroy
((
HIMAGELIST
)
imgl
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
...
...
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