Changeset 918 for trunk/dll/assoc.c
- Timestamp:
- Jan 12, 2008, 9:16:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/assoc.c
r911 r918 41 41 { 42 42 CHAR mask[CCHMAXPATH]; 43 CHAR cl[ 1001];43 CHAR cl[MAXCOMLINESTRG]; 44 44 CHAR sig[CCHMAXPATH]; 45 45 LONG offset; … … 631 631 { 632 632 ASSOC temp; 633 CHAR dummy[34], *psz[1002]; 634 635 replace = FALSE; 633 CHAR dummy[34]; 634 PSZ psz; 635 replace = FALSE; 636 636 637 { 637 638 x = (SHORT) WinSendDlgItemMsg(hwnd, … … 643 644 LM_SELECTITEM, 644 645 MPFROMSHORT(0), MPFROMSHORT(TRUE)); 645 } 646 } 647 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 646 648 memset(&temp, 0, sizeof(ASSOC)); 647 649 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 648 650 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 649 *psz = CheckApp_QuoteAddExe(temp.cl);650 memcpy(temp.cl, *psz, strlen(*psz) + 1);651 CheckApp_QuoteAddExe(psz, temp.cl); 652 memcpy(temp.cl, psz, strlen(psz) + 1); 651 653 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 652 654 rstrip(temp.sig); … … 727 729 { 728 730 ASSOC temp; 729 CHAR dummy[34], *psz[1002];730 731 CHAR dummy[34]; 732 PSZ psz; 731 733 replace = FALSE; 732 734 735 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 733 736 memset(&temp, 0, sizeof(ASSOC)); 734 737 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 735 738 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 736 *psz = CheckApp_QuoteAddExe(temp.cl);737 memcpy(temp.cl, *psz, strlen(*psz) + 1);739 CheckApp_QuoteAddExe(psz, temp.cl); 740 memcpy(temp.cl, psz, strlen(psz) + 1); 738 741 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 739 742 rstrip(temp.sig); … … 836 839 { 837 840 ASSOC temp; 838 CHAR dummy[34], *psz[1002];839 841 CHAR dummy[34]; 842 PSZ psz; 840 843 replace = TRUE; 841 844 … … 843 846 ASS_LISTBOX, 844 847 LM_QUERYSELECTION, 845 MPFROMSHORT(LIT_CURSOR), MPVOID); 848 MPFROMSHORT(LIT_CURSOR), MPVOID); 849 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 846 850 memset(&temp, 0, sizeof(ASSOC)); 847 851 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 848 852 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 849 *psz = CheckApp_QuoteAddExe(temp.cl);850 memcpy(temp.cl, *psz, strlen(*psz) + 1);853 CheckApp_QuoteAddExe(psz, temp.cl); 854 memcpy(temp.cl, psz, strlen(psz) + 1); 851 855 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 852 856 rstrip(temp.sig);
Note:
See TracChangeset
for help on using the changeset viewer.