Changeset 920 for trunk/dll/avv.c
- Timestamp:
- Jan 13, 2008, 2:18:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/dll/avv.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/avv.c
r918 r920 23 23 16 Jun 07 SHL Update for OpenWatcom 24 24 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 entry25 06 Jan 08 GKY Use NormalizeCmdLine to check program strings on entry 26 26 27 27 ***********************************************************************/ … … 40 40 #include "errutil.h" // Runtime_Error 41 41 #include "fm3dll.h" 42 #include "pathutil.h" // NormalizeCmdLine 42 43 43 44 #pragma data_seg(DATA1) … … 92 93 static PSZ free_and_strdup_quoted_from_window(HWND hwnd, USHORT id, PSZ pszDest) 93 94 { // 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__); 98 99 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__); 103 104 } 104 105 else
Note:
See TracChangeset
for help on using the changeset viewer.
