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
279677b7
Commit
279677b7
authored
Jul 28, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Fix possible crash in TVS_SINGELEXPAND helper (Coverity).
parent
c678bdd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
treeview.c
dlls/comctl32/tests/treeview.c
+7
-0
treeview.c
dlls/comctl32/treeview.c
+1
-1
No files found.
dlls/comctl32/tests/treeview.c
View file @
279677b7
...
...
@@ -1255,6 +1255,13 @@ static void test_TVS_SINGLEEXPAND(void)
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_singleexpand_seq
,
"singleexpand notifications"
,
FALSE
);
/* a workaround for NT4 that sends expanding notification when nothing is about to expand */
ret
=
SendMessageA
(
hTree
,
TVM_DELETEITEM
,
0
,
(
LPARAM
)
hRoot
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
fill_tree
(
hTree
);
ret
=
SendMessageA
(
hTree
,
TVM_SELECTITEM
,
TVGN_CARET
,
0
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
DestroyWindow
(
hTree
);
}
...
...
dlls/comctl32/treeview.c
View file @
279677b7
...
...
@@ -3426,7 +3426,7 @@ static void TREEVIEW_SingleExpand(TREEVIEW_INFO *infoPtr,
{
TREEVIEW_ITEM
*
SelItem
;
if
((
infoPtr
->
dwStyle
&
TVS_SINGLEEXPAND
)
==
0
||
infoPtr
->
hwndEdit
)
return
;
if
((
infoPtr
->
dwStyle
&
TVS_SINGLEEXPAND
)
==
0
||
infoPtr
->
hwndEdit
||
!
item
)
return
;
TREEVIEW_SendTreeviewNotify
(
infoPtr
,
TVN_SINGLEEXPAND
,
TVC_UNKNOWN
,
TVIF_HANDLE
|
TVIF_PARAM
,
item
,
0
);
...
...
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