Changeset 1082 for trunk/dll/grep2.c

Show
Ignore:
Timestamp:
07/20/08 00:37:36 (5 months ago)
Author:
gyoung
Message:

Changes so FM2 will use TMP/TEMP directory for all temp files; Replaced save_dir2 with global variable so BldFullPathName? could easily replace code that performed the same function; Added #ifdef FORTIFY to free_ function that are only used when fortified.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep2.c

    r1063 r1082  
    2020  06 Aug 07 GKY Reduce DosSleep times (ticket 148) 
    2121  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 
     22  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName 
    2223 
    2324  fixme for more excess locals to be gone 
     
    4243#include "errutil.h"                    // Dos_Error... 
    4344#include "strutil.h"                    // GetPString 
     45#include "pathutil.h"                   // BldFullPathName 
    4446#include "fm3dll.h" 
    4547#include "fortify.h" 
     
    268270    WinEnableWindow(WinWindowFromID(hwnd, GREP_NOSIZEDUPES), FALSE); 
    269271 
    270     save_dir2(s); 
     272    BldFullPathName(s, pFM2SaveDirectory, "GREPMASK.DAT"); 
     273    /*save_dir2(s); 
    271274    if (s[strlen(s) - 1] != '\\') 
    272275      strcat(s, "\\"); 
    273     strcat(s, "GREPMASK.DAT"); 
     276    strcat(s, "GREPMASK.DAT");*/ 
    274277    fp = _fsopen(s, "r", SH_DENYWR); 
    275278    if (fp) { 
     
    947950                                            LM_QUERYITEMCOUNT, 
    948951                                            MPVOID, MPVOID); 
    949         if (sSelect > 0) { 
    950           save_dir2(s); 
     952        if (sSelect > 0) { 
     953          BldFullPathName(s, pFM2SaveDirectory, "GREPMASK.DAT"); 
     954          /*save_dir2(s); 
    951955          if (s[strlen(s) - 1] != '\\') 
    952956            strcat(s, "\\"); 
    953           strcat(s, "GREPMASK.DAT"); 
     957          strcat(s, "GREPMASK.DAT");*/ 
    954958          fp = xfopen(s, "w", pszSrcFile, __LINE__); 
    955959          if (fp) {