Changeset 1104 for trunk/dll/walkem.c


Ignore:
Timestamp:
Aug 2, 2008, 10:33:03 PM (17 years ago)
Author:
Gregg Young
Message:

Replace save_dir2(dir) with strcpy(dir, pFM2SaveDirectory)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/walkem.c

    r1082 r1104  
    357357  fUdirsChanged = FALSE;
    358358  BldFullPathName(s, pFM2SaveDirectory, "USERDIRS.DAT");
    359   /*save_dir2(s);
    360   if (s[strlen(s) - 1] != '\\')
    361     strcat(s, "\\");
    362   strcat(s, "USERDIRS.DAT");*/
    363359  fp = _fsopen(s, "r", SH_DENYWR);
    364360  if (fp) {
     
    407403    if (udirhead) {
    408404      BldFullPathName(s, pFM2SaveDirectory, "USERDIRS.DAT");
    409       /*save_dir2(s);
    410       if (s[strlen(s) - 1] != '\\')
    411         strcat(s, "\\");
    412       strcat(s, "USERDIRS.DAT");*/
    413405      fp = xfopen(s, "w", pszSrcFile, __LINE__);
    414406      if (fp) {
     
    773765      wa->nounwriteable = TRUE;
    774766    if (!*wa->szReturnPath)
    775       save_dir2(wa->szCurrentPath);
     767      strcpy(wa->szCurrentPath, pFM2SaveDirectory);
    776768    else {
    777769      strcpy(wa->szCurrentPath, wa->szReturnPath);
     
    13971389    }
    13981390    if (!*wa->szCurrentPath1)
    1399       save_dir2(wa->szCurrentPath1);
     1391      strcpy(wa->szCurrentPath1, pFM2SaveDirectory);
    14001392    MakeFullName(wa->szCurrentPath1);
    14011393    if (!*wa->szCurrentPath2)
    1402       save_dir2(wa->szCurrentPath2);
     1394      strcpy(wa->szCurrentPath2, pFM2SaveDirectory);
    14031395    MakeFullName(wa->szCurrentPath2);
    14041396    WinSendDlgItemMsg(hwnd,
Note: See TracChangeset for help on using the changeset viewer.