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
4633fc5c
Commit
4633fc5c
authored
Oct 23, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Fix TVN_DELETEITEM to use item that is about to be deleted.
parent
04e5e9cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
treeview.c
dlls/comctl32/tests/treeview.c
+2
-4
treeview.c
dlls/comctl32/treeview.c
+3
-3
No files found.
dlls/comctl32/tests/treeview.c
View file @
4633fc5c
...
@@ -1359,10 +1359,8 @@ static void test_delete_items(void)
...
@@ -1359,10 +1359,8 @@ static void test_delete_items(void)
if
(
item_sequence
[
0
]
->
count
==
2
)
if
(
item_sequence
[
0
]
->
count
==
2
)
{
{
todo_wine
{
ok
(
msg
[
0
].
lParam
==
(
LPARAM
)
hChild
,
"expected %p, got 0x%lx
\n
"
,
hChild
,
msg
[
0
].
lParam
);
ok
(
msg
[
0
].
lParam
==
(
LPARAM
)
hChild
,
"expected %p, got %lx
\n
"
,
hChild
,
msg
[
0
].
lParam
);
ok
(
msg
[
1
].
lParam
==
(
LPARAM
)
hRoot
,
"expected %p, got 0x%lx
\n
"
,
hRoot
,
msg
[
1
].
lParam
);
ok
(
msg
[
1
].
lParam
==
(
LPARAM
)
hRoot
,
"expected %p, got %lx
\n
"
,
hRoot
,
msg
[
1
].
lParam
);
}
}
}
ret
=
SendMessageA
(
hTree
,
TVM_GETCOUNT
,
0
,
0
);
ret
=
SendMessageA
(
hTree
,
TVM_GETCOUNT
,
0
,
0
);
...
...
dlls/comctl32/treeview.c
View file @
4633fc5c
...
@@ -1479,12 +1479,12 @@ TREEVIEW_RemoveItem(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem)
...
@@ -1479,12 +1479,12 @@ TREEVIEW_RemoveItem(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem)
{
{
TRACE
(
"%p, (%s)
\n
"
,
wineItem
,
TREEVIEW_ItemName
(
wineItem
));
TRACE
(
"%p, (%s)
\n
"
,
wineItem
,
TREEVIEW_ItemName
(
wineItem
));
TREEVIEW_SendTreeviewNotify
(
infoPtr
,
TVN_DELETEITEMW
,
TVC_UNKNOWN
,
TVIF_HANDLE
|
TVIF_PARAM
,
wineItem
,
0
);
if
(
wineItem
->
firstChild
)
if
(
wineItem
->
firstChild
)
TREEVIEW_RemoveAllChildren
(
infoPtr
,
wineItem
);
TREEVIEW_RemoveAllChildren
(
infoPtr
,
wineItem
);
TREEVIEW_SendTreeviewNotify
(
infoPtr
,
TVN_DELETEITEMW
,
TVC_UNKNOWN
,
TVIF_HANDLE
|
TVIF_PARAM
,
wineItem
,
0
);
TREEVIEW_UnlinkItem
(
wineItem
);
TREEVIEW_UnlinkItem
(
wineItem
);
infoPtr
->
uNumItems
--
;
infoPtr
->
uNumItems
--
;
...
...
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