Changeset 920 for trunk/dll/command.c
- Timestamp:
- Jan 13, 2008, 2:18:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/command.c
r918 r920 21 21 19 Apr 07 SHL Sync with AcceptOneDrop GetOneDrop mods 22 22 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 23 06 Jan 08 GKY Use CheckApp_QuoteAddExe to check program strings on entry23 06 Jan 08 GKY Use NormalizeCmdLine to check program strings on entry 24 24 25 25 ***********************************************************************/ … … 40 40 #include "strutil.h" // GetPString 41 41 #include "fm3dll.h" 42 42 #include "pathutil.h" // NormalizeCmdLine 43 43 44 44 typedef struct … … 621 621 { 622 622 COMMAND temp; 623 PSZ psz ;623 PSZ pszWorkBuf; 624 624 APIRET ret; 625 625 626 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__);626 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 627 627 memset(&temp, 0, sizeof(COMMAND)); 628 628 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); 629 CheckApp_QuoteAddExe(psz, temp.cl);630 memcpy(temp.cl, psz , strlen(psz) + 1);629 NormalizeCmdLine(pszWorkBuf, temp.cl); 630 memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1); 631 631 if (!strchr(temp.cl, '%')){ 632 632 ret = saymsg(MB_YESNO, … … 716 716 { 717 717 COMMAND temp; 718 PSZ psz ;718 PSZ pszWorkBuf; 719 719 APIRET ret; 720 720 721 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__);721 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 722 722 memset(&temp, 0, sizeof(COMMAND)); 723 723 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); 724 CheckApp_QuoteAddExe(psz, temp.cl);725 memcpy(temp.cl, psz , strlen(psz) + 1);724 NormalizeCmdLine(pszWorkBuf, temp.cl); 725 memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1); 726 726 if (!strchr(temp.cl, '%')){ 727 727 ret = saymsg(MB_YESNO, … … 816 816 case CMD_REPLACE: 817 817 { //Delete first 818 PSZ psz ;818 PSZ pszWorkBuf; 819 819 COMMAND temp; 820 820 APIRET ret; 821 821 822 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__);822 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 823 823 memset(&temp, 0, sizeof(COMMAND)); 824 824 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); 825 CheckApp_QuoteAddExe(psz, temp.cl);826 memcpy(temp.cl, psz , strlen(psz) + 1);825 NormalizeCmdLine(pszWorkBuf, temp.cl); 826 memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1); 827 827 if (fCancelAction){ 828 828 fCancelAction = FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.