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
81beb955
Commit
81beb955
authored
Sep 27, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Sep 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove item from the list, if we fail to initialize it at insert
time.
parent
26258ce0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
listview.c
dlls/comctl32/listview.c
+7
-2
No files found.
dlls/comctl32/listview.c
View file @
81beb955
...
...
@@ -6619,7 +6619,11 @@ static LRESULT LISTVIEW_InsertItemT(LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem,
hdpaSubItems
);
if
(
nItem
==
-
1
)
goto
fail
;
if
(
!
LISTVIEW_SetItemT
(
infoPtr
,
lpLVItem
,
isW
))
goto
fail
;
if
(
!
LISTVIEW_SetItemT
(
infoPtr
,
lpLVItem
,
isW
))
{
DPA_DeletePtr
(
infoPtr
->
hdpaItems
,
nItem
);
goto
fail
;
}
/* if we're sorted, sort the list, and update the index */
if
(
is_sorted
)
...
...
@@ -6630,7 +6634,8 @@ static LRESULT LISTVIEW_InsertItemT(LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem,
{
ERR
(
"We can't find the item we just inserted, possible memory corruption."
);
/* we can't remove it from the list if we can't find it, so just fail */
goto
fail
;
/* we don't deallocate memory here, as it will probably cause more problems */
return
-
1
;
}
}
...
...
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