Changeset 1833 for trunk/dll/common.c


Ignore:
Timestamp:
Jul 14, 2015, 1:07:26 AM (10 years ago)
Author:
Gregg Young
Message:

A correct (I hope as always) fix for the direct edits. I don't need to reallocate pci-pszFileName or repoint pci->pszDisplayName because updatecnritems does it for me. I also got the tree container to update without using removecnritems. Ticket [557]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/common.c

    r1829 r1833  
    3333  14 Sep 09 SHL Blink thread LEDs while threads working
    3434  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    35   12 Jul 15 GKY Fix CN_REALLOCPSZ file name editing code to: 1) Actually reallocate the buffer.
    36                 2) Point pci->pszDisplayName into the new buffer 3) Eliminate the possibility
    37                 of updating the container before CN_ENDEDIT is called. 4) Only call RemoveCnrItems
     35  13 Jul 15 GKY Fix CN_REALLOCPSZ file name editing code to: 1) Eliminate the possibility of
     36                updating the container before CN_ENDEDIT is called. 2) Don't call RemoveCnrItems
    3837                for tree container and collector.
    3938
     
    875874      }
    876875      else if (mp2) {
    877         if ((INT) mp1 == -1) {
    878           PCNRITEM pci = (PCNRITEM) mp2;
    879           RemoveCnrItems(hwnd, pci, 1, CMA_FREE | CMA_INVALIDATE);
    880         }
    881         else {
    882           Broadcast(WinQueryAnchorBlock(hwnd),
    883                     dcd->hwndParent, UM_UPDATERECORD, mp2, MPVOID);
    884           xfree(mp2, pszSrcFile, __LINE__);
    885         }
     876        Broadcast(WinQueryAnchorBlock(hwnd),
     877                  dcd->hwndParent, UM_UPDATERECORD, mp2, MPVOID);
     878        xfree(mp2, pszSrcFile, __LINE__);
    886879      }
    887880    }
Note: See TracChangeset for help on using the changeset viewer.