Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fe9a0f09
Commit
fe9a0f09
authored
Jan 04, 2001
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 04, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem where when deleting an item using index -1 on an empty
listbox we would pass through an illegal negative index and cause problems.
parent
1dc75536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
listbox.c
controls/listbox.c
+1
-1
No files found.
controls/listbox.c
View file @
fe9a0f09
...
@@ -1587,7 +1587,7 @@ static LRESULT LISTBOX_RemoveItem( WND *wnd, LB_DESCR *descr, INT index )
...
@@ -1587,7 +1587,7 @@ static LRESULT LISTBOX_RemoveItem( WND *wnd, LB_DESCR *descr, INT index )
LB_ITEMDATA
*
item
;
LB_ITEMDATA
*
item
;
INT
max_items
;
INT
max_items
;
if
(
index
==
-
1
)
index
=
descr
->
nb_items
-
1
;
if
(
(
index
==
-
1
)
&&
(
descr
->
nb_items
>
0
)
)
index
=
descr
->
nb_items
-
1
;
else
if
((
index
<
0
)
||
(
index
>=
descr
->
nb_items
))
return
LB_ERR
;
else
if
((
index
<
0
)
||
(
index
>=
descr
->
nb_items
))
return
LB_ERR
;
/* We need to invalidate the original rect instead of the updated one. */
/* We need to invalidate the original rect instead of the updated one. */
...
...
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