Changeset 1104 for trunk/dll/mainwnd.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/mainwnd.c

    r1077 r1104  
    6464  12 Jul 08 JBS Ticket 246: Allow saved directory container states to have no directory containers
    6565                (i.e. just a directory tree container).
    66   18 Jul 08 SHL Use new Fortify feature to avoid spurious reports
     66                18 Jul 08 SHL Use new Fortify feature to avoid spurious reports
     67  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory
    6768
    6869***********************************************************************/
     
    356357      }
    357358      else
    358         save_dir2(ret);
     359        strcpy(ret, pFM2SaveDirectory);
    359360    }
    360361  }
     
    45484549      }
    45494550      else
    4550         save_dir2(wa.szCurrentPath1);
     4551        strcpy(wa.szCurrentPath1, pFM2SaveDirectory);
    45514552      TopWindowName(hwndMain, (HWND) 0, wa.szCurrentPath2);
    45524553      if (!*wa.szCurrentPath2)
     
    50245025      }
    50255026      else
    5026         save_dir2(path);
     5027        strcpy(path, pFM2SaveDirectory);
    50275028      WinDlgBox(HWND_DESKTOP, hwnd, InstantDlgProc, FM3ModHandle,
    50285029                BAT_FRAME, MPFROMP(path));
     
    62336234                    !WinSendMsg(WinQueryWindow(LastDir, QW_PARENT),
    62346235                                UM_CONTAINERDIR, MPFROMP(path), MPVOID))
    6235                   save_dir2(path);
     6236                  strcpy(path, pFM2SaveDirectory);
    62366237                if (!PMMkDir(hwnd, path, TRUE)) {
    62376238                  WinSetWindowText(hwndUL, GetPString(IDS_COMMONDIRTEXT));
Note: See TracChangeset for help on using the changeset viewer.