Commit d35c834b authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Make sure that an empty string never matches a listbox entry in

LISTBOX_FindString().
parent c9df14d8
......@@ -774,7 +774,7 @@ static INT LISTBOX_FindString( WND *wnd, LB_DESCR *descr, INT start,
item = descr->items + start + 1;
if (HAS_STRINGS(descr))
{
if (!str) return LB_ERR;
if (!str || ! str[0] ) return LB_ERR;
if (exact)
{
for (i = start + 1; i < descr->nb_items; i++, item++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment