Fix for null pointer dereference
When there are no items in the scroll list, the check of select/adjust clicks were using event_item=0 and looking up in a NULL sdata list. Move the (existing) early exit a bit higher up, since there are no entries in the list the _select_item() calls aren't needed anyway. Fixes issue reported by John Rickman https://www.riscosopen.org/forum/forums/4/topics/4011 Version 0.41. Tagged as 'Gadgets-0_41'
Showing
Please register or sign in to comment