Changeset 920 for trunk/dll/avv.c


Ignore:
Timestamp:
Jan 13, 2008, 2:18:17 AM (18 years ago)
Author:
Gregg Young
Message:

Cleanup of NormalizeCmdLine moved to pathutil.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/avv.c

    r918 r920  
    2323  16 Jun 07 SHL Update for OpenWatcom
    2424  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
    25   06 Jan 08 GKY Use CheckApp_QuoteAddExe to check program strings on entry
     25  06 Jan 08 GKY Use NormalizeCmdLine to check program strings on entry
    2626
    2727***********************************************************************/
     
    4040#include "errutil.h"                    // Runtime_Error
    4141#include "fm3dll.h"
     42#include "pathutil.h"                   // NormalizeCmdLine
    4243
    4344#pragma data_seg(DATA1)
     
    9293static PSZ free_and_strdup_quoted_from_window(HWND hwnd, USHORT id, PSZ pszDest)
    9394{ // fixme for command line limit
    94   CHAR sz[256];
    95   PSZ psz;
    96 
    97   psz = xmalloc(256, pszSrcFile, __LINE__);
     95  CHAR szCmdLine[256];
     96  PSZ pszWorkBuf;
     97
     98  pszWorkBuf = xmalloc(256, pszSrcFile, __LINE__);
    9899  xfree(pszDest);
    99   WinQueryDlgItemText(hwnd, id, sizeof(sz), sz);
    100   if (*sz){
    101     CheckApp_QuoteAddExe(psz, sz);
    102     pszDest = xstrdup(psz, pszSrcFile, __LINE__);
     100  WinQueryDlgItemText(hwnd, id, sizeof(szCmdLine), szCmdLine);
     101  if (*szCmdLine){
     102    NormalizeCmdLine(pszWorkBuf, szCmdLine);
     103    pszDest = xstrdup(pszWorkBuf, pszSrcFile, __LINE__);
    103104  }
    104105  else
Note: See TracChangeset for help on using the changeset viewer.