[Iup-users] CID 341226 (#1 of 1): COM bad conversion to BSTR (COM.BSTR.CONV)

2019-06-03 Thread Ranier VF
Hi, Several fixes for the iupwin_webbrowser.cpp --- \dll\iup\a\srcweb\iupwin_webbrowser.cpp Wed Apr 03 14:12:26 2019 +++ iupwin_webbrowser.cpp Mon Jun 03 23:00:50 2019 @@ -206,12 +206,14 @@ pweb->get_Document(&lpDispatch); if (!lpDispatch) { +const BSTR pBstr = SysAllocStrin

[Iup-users] CID 210668 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2019-06-03 Thread Ranier VF
Hi, Sorry but can't undestand the logic. iupmatex_clipboard.c line 505, call function: value = iMatrixExStrCopyData(value, &value_max_size, data, value_len); iMatrixExStrCopyData, call memcpy with value without malloc? static char* iMatrixExStrCopyData(char* value, int *value_max_size, const cha

Re: [Iup-users] Ignore function return

2019-06-03 Thread Ranier VF
Thank you Scuri. Best regards, Ranier Vilela De: Antonio Scuri Enviado: segunda-feira, 3 de junho de 2019 23:26 Para: IUP discussion list. Assunto: Re: [Iup-users] Ignore function return Ok. That I can do. Just committed to the SVN. Best, Scuri Em

Re: [Iup-users] Ignore function return

2019-06-03 Thread Antonio Scuri
Ok. That I can do. Just committed to the SVN. Best, Scuri Em seg, 3 de jun de 2019 às 19:17, Ranier VF escreveu: > Hi Scuri, > Thank you for the commits. > However I have some comment about the commit 5211: > https://sourceforge.net/p/iup/iup/5211/ > > While comments like /* ignore return

[Iup-users] Ignore function return

2019-06-03 Thread Ranier VF
Hi Scuri, Thank you for the commits. However I have some comment about the commit 5211: https://sourceforge.net/p/iup/iup/5211/ While comments like /* ignore return value */ is great for programmers, for the Coverity and GCC do not mean anything. The correct way to silence warnings coming is: (vo

Re: [Iup-users] IUP Plot X Axis Ticks

2019-06-03 Thread Antonio Scuri
Just committed to the SVN: - *New: *XTICKFORMATNUMBER_CB and YTICKFORMATNUMBER_CB callbacks for *IupPlot*. They are called right before the tick number is drawn, so it can be used to change its format, or change the displayed value. Best, Scuri *XTICKFORMATNUMBER_CB*: allows to modify

Re: [Iup-users] Multiple fixes

2019-06-03 Thread Antonio Scuri
Fixed and committed to the SVN. Thanks for reporting. Best, Scuri Em sáb, 25 de mai de 2019 às 10:45, Ranier VF escreveu: > Hi, > Multiple fixes in iupwin_newfiledlg.c: > > --- ..\..\a\srcfiledlg\iupwin_newfiledlg.cppFri Sep 14 17:33:33 2018 > +++ iupwin_newfiledlg.cpp Sat May 25 1

Re: [Iup-users] CID 341015 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)

2019-06-03 Thread Antonio Scuri
Yes, but I can't test and continue. The test should be something like the ones previous to iFlatScrollBarMoveHandler. I had to implement something outside iFlatScrollBarCalcHandler too. Just committed to the SVN. Best, Scuri Em qua, 29 de mai de 2019 às 11:27, Ranier VF escreveu: > H

Re: [Iup-users] modifying the IupMatrixEx context menu form menucontext_cb

2019-06-03 Thread Antonio Scuri
Hi, You can use IupAppend and IupInsert just like any container. Best, Scuri Em dom, 2 de jun de 2019 às 15:24, Matthew Kennedy escreveu: > Hi, I am using the awesome IupMatrixEx control, and I'd like to change the > contents on the context menu based on row/col, so I'm using the menu han

Re: [Iup-users] iup_attrib.c Prevent resource leak: CID 210676 Coverity

2019-06-03 Thread Antonio Scuri
Fixed and committed to the SVN. Thanks, Scuri Em ter, 28 de mai de 2019 às 10:41, Ranier VF escreveu: > Hi, > This patch try fixes : > > 1. Coverity and GCC report about absence break into switch or implicit > fallthrough: > > https://stackoverflow.com/questions/45129741/gcc-7-wimplicit-fal