Changeset 6063 for trunk/src


Ignore:
Timestamp:
Jun 22, 2001, 9:32:29 AM (24 years ago)
Author:
sandervl
Message:

DT: getitem fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/listview.c

    r6045 r6063  
    52785278
    52795279  lpItem = (LISTVIEW_ITEM *)DPA_GetPtr(hdpaSubItems, 0);
    5280 #ifdef __WIN32OS2__
    5281   if (lpItem == NULL || lpItem == -1) {
    5282     dprintf(("WARNING: lpItem (%x) INVALID", lpItem));
    5283     return FALSE;
    5284   }
    5285 #else
    52865280  if (lpItem == NULL)
    52875281    return FALSE;
    5288 #endif
    52895282
    52905283  ZeroMemory(&dispInfo, sizeof(NMLVDISPINFOA));
     
    53585351  }
    53595352
     5353#ifdef __WIN32OS2__
     5354      if ((UINT)*ppszText != -1) {
     5355        dprintf(("LISTVIEW_GetItemA lpLVItem->mask (%x), dispInfo.item.mask (%x);", lpLVItem->mask, dispInfo.item.mask));
     5356      }
     5357#endif
     5358
    53605359  if (dispInfo.item.mask & LVIF_TEXT)
    53615360  {
    53625361    if ((dispInfo.item.mask & LVIF_DI_SETITEM) && (ppszText != NULL))
    53635362    {
     5363#ifdef __WIN32OS2__
     5364      dprintf(("LISTVIEW_GetItemA *ppszText (%x), dispInfo.item.pszText (%x);", *ppszText, dispInfo.item.pszText));
     5365      if ((UINT)*ppszText != -1) {
     5366        Str_SetPtrA(ppszText, dispInfo.item.pszText);
     5367      } /* endif */
     5368#else
    53645369      Str_SetPtrA(ppszText, dispInfo.item.pszText);
     5370#endif
    53655371    }
    53665372    /* If lpLVItem->pszText==dispInfo.item.pszText a copy is unnecessary, but */
     
    1092410930    return hedit;
    1092510931}
     10932
     10933
Note: See TracChangeset for help on using the changeset viewer.