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
4b6ed4ed
Commit
4b6ed4ed
authored
Jun 04, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jun 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear the state image bits only if LVS_EX_CHECKBOXES is set.
Fix obvious logical error in focus handling. Indentation and formatting fixes. (based on a patch by Krishna Murthy).
parent
7bd78fe5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
listview.c
dlls/comctl32/listview.c
+4
-5
No files found.
dlls/comctl32/listview.c
View file @
4b6ed4ed
...
...
@@ -3317,7 +3317,7 @@ static BOOL set_main_item(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL
ranges_delitem
(
infoPtr
->
selectionRanges
,
lpLVItem
->
iItem
);
/* if we are asked to change focus, and we manage it, do it */
if
(
lpLVItem
->
state
&
lpLVItem
->
state
Mask
&
~
infoPtr
->
uCallbackMask
&
LVIS_FOCUSED
)
if
(
lpLVItem
->
stateMask
&
~
infoPtr
->
uCallbackMask
&
LVIS_FOCUSED
)
{
if
(
lpLVItem
->
state
&
LVIS_FOCUSED
)
{
...
...
@@ -6041,7 +6041,7 @@ static INT WINAPI LISTVIEW_InsertCompare( LPVOID first, LPVOID second, LPARAM
}
/***
*
n
ESCRIPTION:
*
D
ESCRIPTION:
* Inserts a new item in the listview control.
*
* PARAMETER(S):
...
...
@@ -6072,8 +6072,7 @@ static INT LISTVIEW_InsertItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem,
if
(
!
is_assignable_item
(
lpLVItem
,
infoPtr
->
dwStyle
))
return
-
1
;
if
(
!
(
lpItem
=
(
ITEM_INFO
*
)
Alloc
(
sizeof
(
ITEM_INFO
)))
)
return
-
1
;
if
(
!
(
lpItem
=
(
ITEM_INFO
*
)
Alloc
(
sizeof
(
ITEM_INFO
))))
return
-
1
;
/* insert item in listview control data structure */
if
(
!
(
hdpaSubItems
=
DPA_Create
(
8
))
)
goto
fail
;
...
...
@@ -6108,7 +6107,7 @@ static INT LISTVIEW_InsertItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem,
memcpy
(
&
item
,
lpLVItem
,
offsetof
(
LVITEMW
,
iIndent
));
}
item
.
iItem
=
nItem
;
item
.
state
&=
~
LVIS_STATEIMAGEMASK
;
i
f
(
infoPtr
->
dwLvExStyle
&
LVS_EX_CHECKBOXES
)
i
tem
.
state
&=
~
LVIS_STATEIMAGEMASK
;
if
(
!
set_main_item
(
infoPtr
,
&
item
,
TRUE
,
isW
,
&
has_changed
))
goto
undo
;
/* if we're sorted, sort the list, and update the index */
...
...
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