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
06d610ec
Commit
06d610ec
authored
May 02, 2003
by
Adam Gundy
Committed by
Alexandre Julliard
May 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check the mask flags in the item structure to determine how much
memory to read/write.
parent
e2ae56e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
4 deletions
+34
-4
listview.c
dlls/comctl32/listview.c
+32
-4
commctrl.h
include/commctrl.h
+2
-0
No files found.
dlls/comctl32/listview.c
View file @
06d610ec
...
...
@@ -4911,7 +4911,21 @@ static BOOL LISTVIEW_GetItemT(LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem, BOOL i
dispInfo
.
item
.
stateMask
=
lpLVItem
->
stateMask
&
infoPtr
->
uCallbackMask
;
notify_dispinfoT
(
infoPtr
,
LVN_GETDISPINFOW
,
&
dispInfo
,
isW
);
dispInfo
.
item
.
stateMask
=
lpLVItem
->
stateMask
;
*
lpLVItem
=
dispInfo
.
item
;
if
(
lpLVItem
->
mask
&
(
LVIF_GROUPID
|
LVIF_COLUMNS
))
{
/* full size structure expected - _WIN32IE >= 0x560 */
*
lpLVItem
=
dispInfo
.
item
;
}
else
if
(
lpLVItem
->
mask
&
LVIF_INDENT
)
{
/* indent member expected - _WIN32IE >= 0x300 */
memcpy
(
lpLVItem
,
&
dispInfo
.
item
,
offsetof
(
LVITEMW
,
iGroupId
));
}
else
{
/* minimal structure expected */
memcpy
(
lpLVItem
,
&
dispInfo
.
item
,
offsetof
(
LVITEMW
,
iIndent
));
}
TRACE
(
" getdispinfo(1):lpLVItem=%s
\n
"
,
debuglvitem_t
(
lpLVItem
,
isW
));
}
...
...
@@ -5910,9 +5924,23 @@ static INT LISTVIEW_InsertItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem,
nItem
=
DPA_InsertPtr
(
infoPtr
->
hdpaItems
,
nItem
,
hdpaSubItems
);
if
(
nItem
==
-
1
)
goto
fail
;
infoPtr
->
nItemCount
++
;
/* set the item attributes */
item
=
*
lpLVItem
;
/* set the item attributes */
if
(
lpLVItem
->
mask
&
(
LVIF_GROUPID
|
LVIF_COLUMNS
))
{
/* full size structure expected - _WIN32IE >= 0x560 */
item
=
*
lpLVItem
;
}
else
if
(
lpLVItem
->
mask
&
LVIF_INDENT
)
{
/* indent member expected - _WIN32IE >= 0x300 */
memcpy
(
&
item
,
lpLVItem
,
offsetof
(
LVITEMW
,
iGroupId
));
}
else
{
/* minimal structure expected */
memcpy
(
&
item
,
lpLVItem
,
offsetof
(
LVITEMW
,
iIndent
));
}
item
.
iItem
=
nItem
;
item
.
state
&=
~
LVIS_STATEIMAGEMASK
;
if
(
!
set_main_item
(
infoPtr
,
&
item
,
TRUE
,
isW
,
&
has_changed
))
goto
undo
;
...
...
include/commctrl.h
View file @
06d610ec
...
...
@@ -2716,6 +2716,8 @@ static const WCHAR WC_LISTVIEWW[] = { 'S','y','s',
#define LVIF_PARAM 0x0004
#define LVIF_STATE 0x0008
#define LVIF_INDENT 0x0010
#define LVIF_GROUPID 0x0100
#define LVIF_COLUMNS 0x0200
#define LVIF_NORECOMPUTE 0x0800
#define LVIF_DI_SETITEM 0x1000
...
...
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