Changeset 989 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Mar 2, 2008, 12:34:12 AM (18 years ago)
Author:
Gregg Young
Message:

Refactor fm3dll.h to create command.h; broken ini is now replaced with backup or new ini as available; more variable command line ledth changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r985 r989  
    7575#include "comp.h"
    7676#include "datamin.h"
    77 #include "arccnrs.h"                    // BldQuotedFileName
     77#include "pathutil.h"                    // BldQuotedFileName
    7878#include "errutil.h"                    // Dos_Error...
    7979#include "strutil.h"                    // GetPString
    8080#include "notebook.h"                   // CfgDlgProc CfgMenuInit
     81#include "command.h"                    // LINKCMDS
    8182#include "fm3dll.h"
    8283
     
    15361537  case UM_RESCAN:
    15371538    {
    1538       CHAR cl[1024];
    1539 
    1540       *cl = 0;
    1541       lbup = TRUE;
    1542       if (WinDlgBox(HWND_DESKTOP,
    1543                     hwnd,
    1544                     CmdLine2DlgProc,
    1545                     FM3ModHandle, EXEC2_FRAME, MPFROMP(cl))) {
    1546         lstrip(cl);
    1547         WinSetWindowText(hwnd, cl);
    1548       }
    1549       PostMsg(hwnd, UM_FOCUSME, MPVOID, MPVOID);
    1550       PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
     1539      PSZ pszCmdLine;
     1540
     1541      pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
     1542      if (pszCmdLine) {
     1543        lbup = TRUE;
     1544        if (WinDlgBox(HWND_DESKTOP,
     1545                      hwnd,
     1546                      CmdLine2DlgProc,
     1547                      FM3ModHandle, EXEC2_FRAME, MPFROMP(pszCmdLine))) {
     1548          lstrip(pszCmdLine);
     1549        WinSetWindowText(hwnd, pszCmdLine);
     1550        }
     1551        PostMsg(hwnd, UM_FOCUSME, MPVOID, MPVOID);
     1552        PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
     1553        xfree(pszCmdLine);
     1554      }
    15511555    }
    15521556    return 0;
Note: See TracChangeset for help on using the changeset viewer.