Changeset 730 for trunk/dll/misc.c


Ignore:
Timestamp:
Jul 22, 2007, 7:57:09 PM (18 years ago)
Author:
Gregg Young
Message:

Preliminary work on variable sized container buffers. Removes szFileName etc. Builds fine but traps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r728 r730  
    2424  18 Feb 07 GKY More drive type and drive icon support
    2525  10 Jun 07 GKY Add IsFm2Window as part of work around PM drag limit
     26  05 Jul 07 GKY Fix menu removals for WORKPLACE_PROCESS=YES
    2627
    2728***********************************************************************/
     
    651652      if (pci &&
    652653          (INT) pci != -1 &&
    653           !IsRoot(pci->szFileName) &&
     654          !IsRoot(pci->pszFileName) &&
    654655          !(pci->flags & RECFLAGS_ENV) && !(pci->flags & RECFLAGS_UNDERENV)) {
    655656        if (!pfi || pfi->offStruct == FIELDOFFSET(CNRITEM, pszFileName)) {
    656           PostMsg(hwnd, UM_FIXEDITNAME, MPFROMP(pci->szFileName), MPVOID);
     657          PostMsg(hwnd, UM_FIXEDITNAME, MPFROMP(pci->pszFileName), MPVOID);
    657658        }
    658659        else if (pfi->offStruct == FIELDOFFSET(CNRITEM, pszSubject))
     
    673674      HWND hwndMLE = WinWindowFromID(hwnd, CID_MLE);
    674675
    675       if (pci && (INT) pci != -1 && !IsRoot(pci->szFileName)) {
     676      if (pci && (INT) pci != -1 && !IsRoot(pci->pszFileName)) {
    676677        if (pfi && pfi->offStruct == FIELDOFFSET(CNRITEM, pszSubject)) {
    677678
     
    720721            eaop.fpFEA2List = pfealist;
    721722            eaop.oError = 0L;
    722             rc = DosSetPathInfo(pci->szFileName,
     723            rc = DosSetPathInfo(pci->pszFileName,
    723724                                FIL_QUERYEASIZE,
    724725                                (PVOID) & eaop, sizeof(EAOP2), DSPI_WRTTHRU);
     
    738739          chop_at_crnl(longname);
    739740          WinSetWindowText(hwndMLE, longname);
    740           return (MRESULT) WriteLongName(pci->szFileName, longname);
     741          return (MRESULT) WriteLongName(pci->pszFileName, longname);
    741742        }
    742743        else {
    743744          WinQueryWindowText(hwndMLE, sizeof(szData), szData);
    744745          if (strchr(szData, '?') ||
    745               strchr(szData, '*') || IsRoot(pci->szFileName))
     746              strchr(szData, '*') || IsRoot(pci->pszFileName))
    746747            return (MRESULT) FALSE;
    747748          /* If the text changed, rename the file system object. */
     
    755756                                 testname, sizeof(testname)))
    756757              return FALSE;
    757             if (DosQueryPathInfo(pci->szFileName,
     758            if (DosQueryPathInfo(pci->pszFileName,
    758759                                 FIL_QUERYFULLNAME, szData, sizeof(szData)))
    759               strcpy(szData, pci->szFileName);
     760              strcpy(szData, pci->pszFileName);
    760761            WinSetWindowText(hwndMLE, szData);
    761762            if (strcmp(szData, testname)) {
     
    775776                    free(filename);
    776777                }
    777                 if (stricmp(testname, pci->szFileName)) {
     778                if (stricmp(testname, pci->pszFileName)) {
    778779                  PostMsg(hwnd, UM_FIXEDITNAME, MPFROMLONG(-1), MPFROMP(pci));
    779                   filename = xstrdup(pci->szFileName, pszSrcFile, __LINE__);
     780                  filename = xstrdup(pci->pszFileName, pszSrcFile, __LINE__);
    780781                  if (filename) {
    781782                    if (!PostMsg(hwnd,
     
    797798      PCNRITEM pci = (PCNRITEM) ((PCNREDITDATA) mp2)->pRecord;
    798799
    799       if (pci && (INT) pci != -1 && !IsRoot(pci->szFileName)) {
     800      if (pci && (INT) pci != -1 && !IsRoot(pci->pszFileName)) {
    800801        WinSendMsg(hwnd,
    801802                   CM_INVALIDATERECORD,
Note: See TracChangeset for help on using the changeset viewer.