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
33ee0cae
Commit
33ee0cae
authored
Aug 19, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use reduced IMAGELISTDRAWPARAMS structure size for tests.
parent
4d6c30f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
+5
-16
imagelist.c
dlls/comctl32/tests/imagelist.c
+3
-15
commctrl.h
include/commctrl.h
+2
-1
No files found.
dlls/comctl32/tests/imagelist.c
View file @
33ee0cae
...
...
@@ -447,17 +447,12 @@ static void test_DrawIndirect(void)
memset
(
&
imldp
,
0
,
sizeof
(
imldp
));
ok
(
!
pImageList_DrawIndirect
(
&
imldp
),
"zero data succeeded!
\n
"
);
imldp
.
cbSize
=
sizeof
(
imldp
)
;
imldp
.
cbSize
=
IMAGELISTDRAWPARAMS_V3_SIZE
;
ok
(
!
pImageList_DrawIndirect
(
&
imldp
),
"zero hdc succeeded!
\n
"
);
imldp
.
hdcDst
=
hdc
;
ok
(
!
pImageList_DrawIndirect
(
&
imldp
),
"zero himl succeeded!
\n
"
);
imldp
.
himl
=
himl
;
if
(
!
pImageList_DrawIndirect
(
&
imldp
))
{
/* Earlier versions of native comctl32 use a smaller structure */
imldp
.
cbSize
-=
3
*
sizeof
(
DWORD
);
ok
(
pImageList_DrawIndirect
(
&
imldp
),
"DrawIndirect should succeed
\n
"
);
}
REDRAW
(
hwndfortest
);
WAIT
;
...
...
@@ -1605,17 +1600,10 @@ static void test_IImageList_Draw(void)
hr
=
IImageList_Draw
(
imgl
,
&
imldp
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
hr
);
imldp
.
cbSize
=
sizeof
(
imldp
)
;
imldp
.
cbSize
=
IMAGELISTDRAWPARAMS_V3_SIZE
;
imldp
.
hdcDst
=
hdc
;
imldp
.
himl
=
himl
;
if
(
FAILED
(
IImageList_Draw
(
imgl
,
&
imldp
)))
{
/* Earlier versions of native comctl32 use a smaller structure */
imldp
.
cbSize
-=
3
*
sizeof
(
DWORD
);
ok
(
SUCCEEDED
(
IImageList_Draw
(
imgl
,
&
imldp
)),
"should succeed
\n
"
);
}
REDRAW
(
hwndfortest
);
WAIT
;
...
...
include/commctrl.h
View file @
33ee0cae
...
...
@@ -580,9 +580,10 @@ typedef struct _IMAGELISTDRAWPARAMS
DWORD
dwRop
;
DWORD
fState
;
DWORD
Frame
;
DWORD
crEffect
;
COLORREF
crEffect
;
}
IMAGELISTDRAWPARAMS
,
*
LPIMAGELISTDRAWPARAMS
;
#define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop)
HRESULT
WINAPI
HIMAGELIST_QueryInterface
(
HIMAGELIST
,
REFIID
,
void
**
);
INT
WINAPI
ImageList_Add
(
HIMAGELIST
,
HBITMAP
,
HBITMAP
);
...
...
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