Changeset 1082 for trunk/dll/fm3dll.h

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/fm3dll.h

    r1076 r1082  
    8484                DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 
    8585  16 JUL 08 GKY Use TMP directory for temp files 
     86  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use MakeTempName; Remove LISTTEMPROOT 
    8687 
    8788***********************************************************************/ 
     
    229230#define ALLATTRS                (FILE_NORMAL | FILE_DIRECTORY | FILE_ARCHIVED |\ 
    230231                                 FILE_HIDDEN | FILE_READONLY | FILE_SYSTEM) 
    231 #define LISTTEMPROOT            "$FM2LI$T." 
     232//#define LISTTEMPROOT            "$FM2LI$T" 
    232233 
    233234#include "fm3dll2.h" 
     
    630631CHAR default_disk(VOID); 
    631632APIRET docopyf(INT type, CHAR * oldname, CHAR * newname, ...); 
     633char *MakeTempName(char *buffer, char *temproot, int type); 
    632634 
    633635#define COPY 0 
     
    11111113             hwndLED, hwndLEDHdr, hwndAutoMLE, hwndCmdlist; 
    11121114DATADEF HBITMAP hbmLEDon, hbmLEDoff; 
    1113 DATADEF CHAR ArcTempRoot[CCHMAXPATH], ThousandsSeparator[2], *pTmpDir; 
     1115DATADEF CHAR ArcTempRoot[CCHMAXPATH], ThousandsSeparator[2], *pTmpDir, *pFM2SaveDirectory; 
    11141116DATADEF HPOINTER hptrArrow, hptrBusy, hptrLast, hptrDir, hptrFile, hptrRemote, 
    11151117  hptrFloppy, hptrDrive, hptrRemovable, hptrCDROM,hptrVirtual,hptrRamdisk,