listview advice needed.

Dimitrie O. Paun dpaun at rogers.com
Sat Nov 15 00:50:34 CST 2003


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?

-- 
Dimi.




More information about the wine-devel mailing list