Changeset 985 for trunk/dll/avv.c
- Timestamp:
- Mar 1, 2008, 2:37:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/avv.c
r959 r985 24 24 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 25 25 06 Jan 08 GKY Use NormalizeCmdLine to check program strings on entry 26 29 Feb 08 GKY Changes to enable user settable command line length 26 27 27 28 ***********************************************************************/ … … 93 94 static PSZ free_and_strdup_quoted_from_window(HWND hwnd, USHORT id, PSZ pszDest) 94 95 { // fixme for command line limit 95 CHAR szCmdLine[MAXCOMLINESTRG]; 96 96 CHAR *szCmdLine; 97 98 szCmdLine = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 99 if (!szCmdLine) 100 return NULL; //already complained 97 101 xfree(pszDest); 98 102 WinQueryDlgItemText(hwnd, id, sizeof(szCmdLine), szCmdLine); 99 103 if (*szCmdLine){ 100 104 PSZ pszWorkBuf; 101 pszWorkBuf = xmalloc(M AXCOMLINESTRG, pszSrcFile, __LINE__);105 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 102 106 if (pszWorkBuf) { 103 107 NormalizeCmdLine(pszWorkBuf, szCmdLine); … … 110 114 else 111 115 pszDest = NULL; 116 xfree(szCmdLine); 112 117 return pszDest; 113 118 }
Note:
See TracChangeset
for help on using the changeset viewer.