Changeset 731 for trunk/dll/objcnr.c


Ignore:
Timestamp:
Jul 24, 2007, 1:18:39 AM (18 years ago)
Author:
Steven Levine
Message:

Correct ticket 24 pointer errors for Gregg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/objcnr.c

    r730 r731  
    6767  RECORDINSERT ri;
    6868  PCNRITEM pciP;
    69   CHAR *f = 0;
    7069
    7170  ffb = xmalloc(sizeof(FILEFINDBUF3), pszSrcFile, __LINE__);
     
    9291
    9392  if ((!rc && (ffb->attrFile & FILE_DIRECTORY))) {
    94     pciP =
    95       WinSendMsg(hwndCnr, CM_ALLOCRECORD, MPFROMLONG(EXTRA_RECORD_BYTES2),
    96                  MPFROMLONG(1L));
     93    pciP = WinSendMsg(hwndCnr,
     94                      CM_ALLOCRECORD,
     95                      MPFROMLONG(EXTRA_RECORD_BYTES2),
     96                      MPFROMLONG(1L));
    9797    if (!pciP) {
    9898      free(ffb);
     
    101101    pciP->pszFileName = xstrdup(filename, pszSrcFile, __LINE__);
    102102    pciP->pszDispAttr = pciP->szDispAttr;
     103    *pciP->szDispAttr = 0;
    103104    //pciP->pszSubject = pciP->szSubject;
     105    pciP->pszSubject = xstrdup(NullStr, pszSrcFile, __LINE__);  // 23 Jul 07 SHL
    104106    //pciP->pszLongname = pciP->szLongname;
    105     pciP->pszDispAttr = pciP->szDispAttr;
    106     *pciP->szDispAttr = 0;
    107     pciP->pszLongname = xstrdup(f, pszSrcFile, __LINE__);
    108     pciP->pszSubject = xstrdup(f, pszSrcFile, __LINE__);
     107    pciP->pszLongname = xstrdup(NullStr, pszSrcFile, __LINE__);
    109108    if (strlen(filename) < 4)
    110109      pciP->pszFileName = pciP->pszFileName;
Note: See TracChangeset for help on using the changeset viewer.