commit | d35c834b77938bf39e73b7192a43d5ca4e95ab8c | [log] [tgz] |
---|---|---|
author | Rein Klazes <rklazes@casema.net> | Sat Aug 21 13:04:58 1999 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Sat Aug 21 13:04:58 1999 +0000 |
tree | 08eb851cef13d48de00172b26de070255797744c | |
parent | c9df14d859eaec6f41e950a20ea2a03568995d95 [diff] [blame] |
Make sure that an empty string never matches a listbox entry in LISTBOX_FindString().
diff --git a/controls/listbox.c b/controls/listbox.c index c08dd8a..4cab69e 100644 --- a/controls/listbox.c +++ b/controls/listbox.c
@@ -774,7 +774,7 @@ 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++)