listview advice needed.
Rein Klazes
rklazes at xs4all.nl
Sat Nov 15 01:40:32 CST 2003
On Sat, 15 Nov 2003 01:50:34 -0500, you wrote:
> On November 12, 2003 08:30 am, Rein Klazes wrote:
> > | if (lpSubItem)
> > | {
> > | SUBITEM_INFO *lpSubItem = LISTVIEW_GetSubItemPtr(hdpaSubItems,
> > | lpLVItem->iSubItem); pItemHdr = lpSubItem ? &lpSubItem->hdr :
> > | &callbackHdr;
> > |+ if(!lpSubItem) lpLVItem->iSubItem = 0;
> > | }
> >
> > the program proceeds (crashes much much later) . But this is probably
> > not the correct way to check that an invalid subitem has been passed
> > (for instance I don't understand the callbackHdr stuff above).
> >
> > Any suggestion what is the correct fix?
>
> OK, I've looked at the code, and it may be the fix. The problem with
> it is that we modify the app's structure, which may be a problem.
> Can you please check with the native comctl32 if it modifies iSubItem
> to 0 after the call?
I forgot to mention exactly that, it does not. It is just my application
that happens not to use it.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
More information about the wine-devel
mailing list