Changeset 934 for trunk/dll/misc.c


Ignore:
Timestamp:
Jan 19, 2008, 11:52:03 PM (18 years ago)
Author:
Gregg Young
Message:

Fix direct edit of subjects and longnames.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r930 r934  
    691691        }
    692692        else if (pfi->offStruct == FIELDOFFSET(CNRITEM, pszSubject))
    693           PostMsg(hwnd, UM_FIXCNRMLE, MPFROMLONG(40), MPVOID);
     693          PostMsg(hwnd, UM_FIXCNRMLE, MPFROMLONG(1048), MPVOID);
    694694        else
    695695          PostMsg(hwnd, UM_FIXCNRMLE, MPFROMLONG(CCHMAXPATH), MPVOID);
     
    721721          retlen = WinQueryWindowText(hwndMLE, sizeof(szSubject), szSubject);
    722722          szSubject[retlen + 1] = 0;
    723           //chop_at_crnl(szSubject);
    724723          bstrip(szSubject);
    725724          pci->pszSubject = xrealloc(pci->pszSubject, retlen + 1, pszSrcFile, __LINE__);
    726           WinSetWindowText(hwndMLE, szSubject);
     725          WinSetWindowText(hwndMLE, szSubject);
     726          pci->pszSubject = xstrdup(szSubject, pszSrcFile, __LINE__);
    727727          len = strlen(szSubject);
    728728          if (len)
     
    767767
    768768          CHAR longname[CCHMAXPATHCOMP];
    769         LONG retlen;
     769          LONG retlen;
    770770
    771771          *longname = 0;
    772772          retlen = WinQueryWindowText(hwndMLE, sizeof(longname), longname);
    773773          longname[retlen + 1] = 0;
    774           //chop_at_crnl(longname);
     774          chop_at_crnl(longname);
    775775          pci->pszLongName = xrealloc(pci->pszLongName, retlen + 1, pszSrcFile, __LINE__);
    776           WinSetWindowText(hwndMLE, longname);
    777           pci->pszFileName = xrealloc(pci->pszFileName, retlen + 1, pszSrcFile, __LINE__);
     776          WinSetWindowText(hwndMLE, longname);
     777          pci->pszLongName = xstrdup(longname, pszSrcFile, __LINE__);
     778          //pci->pszFileName = xrealloc(pci->pszFileName, retlen + 1, pszSrcFile, __LINE__);
    778779          return (MRESULT) WriteLongName(pci->pszFileName, longname);
    779780        }
Note: See TracChangeset for help on using the changeset viewer.