Changeset 918 for trunk/dll/command.c
- Timestamp:
- Jan 12, 2008, 9:16:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/command.c
r911 r918 44 44 typedef struct 45 45 { 46 CHAR cl[ 1001];46 CHAR cl[MAXCOMLINESTRG]; 47 47 INT flags; 48 48 CHAR title[34]; … … 621 621 { 622 622 COMMAND temp; 623 char *psz[1002];623 PSZ psz; 624 624 APIRET ret; 625 625 626 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 626 627 memset(&temp, 0, sizeof(COMMAND)); 627 628 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); 628 *psz = CheckApp_QuoteAddExe(temp.cl);629 memcpy(temp.cl, *psz, strlen(*psz) + 1);629 CheckApp_QuoteAddExe(psz, temp.cl); 630 memcpy(temp.cl, psz, strlen(psz) + 1); 630 631 if (!strchr(temp.cl, '%')){ 631 632 ret = saymsg(MB_YESNO, … … 715 716 { 716 717 COMMAND temp; 717 CHAR *psz[1002];718 PSZ psz; 718 719 APIRET ret; 719 720 721 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 720 722 memset(&temp, 0, sizeof(COMMAND)); 721 723 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); 722 *psz = CheckApp_QuoteAddExe(temp.cl);723 memcpy(temp.cl, *psz, strlen(*psz) + 1);724 CheckApp_QuoteAddExe(psz, temp.cl); 725 memcpy(temp.cl, psz, strlen(psz) + 1); 724 726 if (!strchr(temp.cl, '%')){ 725 727 ret = saymsg(MB_YESNO, … … 814 816 case CMD_REPLACE: 815 817 { //Delete first 816 char *psz[1002];818 PSZ psz; 817 819 COMMAND temp; 818 820 APIRET ret; 819 821 822 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 820 823 memset(&temp, 0, sizeof(COMMAND)); 821 824 WinQueryDlgItemText(hwnd, CMD_CL, sizeof(temp.cl), temp.cl); 822 *psz = CheckApp_QuoteAddExe(temp.cl);823 memcpy(temp.cl, *psz, strlen(*psz) + 1);825 CheckApp_QuoteAddExe(psz, temp.cl); 826 memcpy(temp.cl, psz, strlen(psz) + 1); 824 827 if (fCancelAction){ 825 828 fCancelAction = FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.