Changeset 909 for trunk/dll/assoc.c
- Timestamp:
- Jan 6, 2008, 9:02:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/assoc.c
r907 r909 630 630 { 631 631 ASSOC temp; 632 CHAR dummy[34] ;632 CHAR dummy[34], *psz[1002]; 633 633 634 634 replace = FALSE; … … 645 645 memset(&temp, 0, sizeof(ASSOC)); 646 646 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 647 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 647 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 648 *psz = CheckApp_QuoteAddExe(temp.cl); 649 memcpy(temp.cl, *psz, strlen(*psz) + 1); 648 650 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 649 651 rstrip(temp.sig); … … 669 671 temp.flags |= DIEAFTER; 670 672 if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT)) 671 temp.flags |= PROMPT; 673 temp.flags |= PROMPT; 674 if (fCancelAction){ 675 fCancelAction = FALSE; 676 break; 677 } 678 else 672 679 info = add_association(&temp); 673 680 if (!info) … … 719 726 { 720 727 ASSOC temp; 721 CHAR dummy[34] ;728 CHAR dummy[34], *psz[1002]; 722 729 723 730 replace = FALSE; … … 725 732 memset(&temp, 0, sizeof(ASSOC)); 726 733 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 727 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 734 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 735 *psz = CheckApp_QuoteAddExe(temp.cl); 736 memcpy(temp.cl, *psz, strlen(*psz) + 1); 728 737 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 729 738 rstrip(temp.sig); … … 749 758 temp.flags |= DIEAFTER; 750 759 if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT)) 751 temp.flags |= PROMPT; 752 info = add_association(&temp); 760 temp.flags |= PROMPT; 761 if (fCancelAction){ 762 fCancelAction = FALSE; 763 break; 764 } 765 else 766 info = add_association(&temp); 753 767 //Add will fail if mask is not changed 754 768 if (info) { … … 821 835 { 822 836 ASSOC temp; 823 CHAR dummy[34] ;837 CHAR dummy[34], *psz[1002]; 824 838 825 839 replace = TRUE; … … 831 845 memset(&temp, 0, sizeof(ASSOC)); 832 846 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 833 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 847 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 848 *psz = CheckApp_QuoteAddExe(temp.cl); 849 memcpy(temp.cl, *psz, strlen(*psz) + 1); 834 850 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 835 851 rstrip(temp.sig); … … 855 871 temp.flags |= DIEAFTER; 856 872 if (WinQueryButtonCheckstate(hwnd, ASS_PROMPT)) 857 temp.flags |= PROMPT; 858 info = add_association(&temp); 873 temp.flags |= PROMPT; 874 if (fCancelAction){ 875 fCancelAction = FALSE; 876 break; 877 } 878 else 879 info = add_association(&temp); 859 880 //Add will fail if mask is not changed 860 881 if (info) {
Note:
See TracChangeset
for help on using the changeset viewer.