Changeset 839 for trunk/dll/grep.c


Ignore:
Timestamp:
Sep 21, 2007, 10:01:38 PM (18 years ago)
Author:
Gregg Young
Message:

Added once per session error message for files whos full path name exceed max path length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r837 r839  
    463463  APIRET rc;
    464464  ULONG ulBufBytes = FilesToGet * sizeof(FILEFINDBUF4);
     465  static BOOL fDone;
    465466
    466467  pffbArray = xmalloc(ulBufBytes, pszSrcFile, __LINE__);
     
    507508          if (strlen(szFindPath) > 256){   //21 Sep GKY check for pathnames that exceed maxpath
    508509            DosFindClose(findHandle);
    509             free(pffbArray);
     510            free(pffbArray);
     511            if (!fDone) {
     512              fDone = TRUE;
     513              saymsg(MB_OK | MB_ICONASTERISK,
     514                     HWND_DESKTOP,
     515                     GetPString(IDS_WARNINGTEXT),
     516                     "One or more of your files has a full path name that exceeds the OS/2 maximum");
     517            }
    510518            return 1;
    511519          }
Note: See TracChangeset for help on using the changeset viewer.