De: Scott Morgan via Iup-users <iup-users@lists.sourceforge.net> Enviado: quarta-feira, 14 de abril de 2021 15:40 Para: iup-users@lists.sourceforge.net Cc: Scott Morgan Assunto: Re: [Iup-users] Issue with iup.list and showdragdrop
On 14/04/2021 15:47, Scott Morgan via Iup-users wrote: > Running into an issue with IUP unexpectedly exiting app > > Simple Lua script: > > dlg = iup.dialog{iup.list{expand="YES",showdragdrop="YES"}} > dlg:showxy(iup.CENTER,iup.CENTER) > iup.MainLoop() > > Now click on the lower area of the list box (below the empty list item > placeholder), the executable quits without warning. > > Remove the showdragdrop setting and everything works fine. > > This is on Win10. >Further examination suggests the problem is around src/win/iupwin_list.c >line 1098. >The result of winListGetItemData isn't checked (returns NULL in this >situation) and immediately used on the next line (itemdata->hBitmap) Correct, winListGetItemData can return NULL. It's needed protect itemdata against NULL. regards, Ranier Vilela _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users