Ignore:
Timestamp:
Nov 19, 1999, 6:13:32 PM (26 years ago)
Author:
achimha
Message:

added woraround for character 0xA at text end in Regedit

File:
1 edited

Legend:

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

    r1776 r1778  
    1 /* $Id: treeview.c,v 1.16 1999-11-19 16:22:01 achimha Exp $ */
     1/* $Id: treeview.c,v 1.17 1999-11-19 17:13:32 achimha Exp $ */
    22/* Treeview control
    33 *
     
    17081708//      TRACE (treeview,"(%p,%s)\n", &tvItem->pszText, tvItem->pszText);
    17091709      len = lstrlenA (tvItem->pszText)+1;
     1710      // AH: Win95 regedit creates items with 10 as the last character
     1711      // we don't want that to appear...
     1712      if (*(tvItem->pszText + len - 2) == 10)
     1713      {
     1714        *(tvItem->pszText + len - 2) = 0;
     1715        dprintf(("item has character 10 at end, removed: %s\n", tvItem->pszText));
     1716      }
    17101717      wineItem->pszText= COMCTL32_Alloc (len+1);
    17111718      lstrcpyA (wineItem->pszText, tvItem->pszText);
Note: See TracChangeset for help on using the changeset viewer.