Stop a listbox bug that causes a div by zero when the item height
is zero. Doesn't solve the root of the problem though.
diff --git a/controls/listbox.c b/controls/listbox.c
index dbcf862..7cb45b9 100644
--- a/controls/listbox.c
+++ b/controls/listbox.c
@@ -297,7 +297,8 @@
{
INT page_size;
- if ((page_size = descr->height / descr->item_height) < 1) page_size = 1;
+ if ((descr->item_height == 0) || (page_size = descr->height / descr->item_height) < 1)
+ page_size = 1;
if (page_size == descr->page_size) return;
descr->page_size = page_size;
if (descr->style & LBS_MULTICOLUMN)