Changeset 920 for trunk/dll/assoc.c
- Timestamp:
- Jan 13, 2008, 2:18:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/assoc.c
r918 r920 15 15 19 Apr 07 SHL Sync with AcceptOneDrop GetOneDrop mods 16 16 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 17 06 Jan 08 GKY Use CheckApp_QuoteAddExe to check program strings on entry17 06 Jan 08 GKY Use NormalizeCmdLine to check program strings on entry 18 18 19 19 **************************************************************************************/ … … 632 632 ASSOC temp; 633 633 CHAR dummy[34]; 634 PSZ psz ;634 PSZ pszWorkBuf; 635 635 replace = FALSE; 636 636 … … 645 645 MPFROMSHORT(0), MPFROMSHORT(TRUE)); 646 646 } 647 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__);647 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 648 648 memset(&temp, 0, sizeof(ASSOC)); 649 649 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 650 650 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 651 CheckApp_QuoteAddExe(psz, temp.cl);652 memcpy(temp.cl, psz , strlen(psz) + 1);651 NormalizeCmdLine(pszWorkBuf, temp.cl); 652 memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1); 653 653 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 654 654 rstrip(temp.sig); … … 730 730 ASSOC temp; 731 731 CHAR dummy[34]; 732 PSZ psz ;732 PSZ pszWorkBuf; 733 733 replace = FALSE; 734 734 735 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__);735 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 736 736 memset(&temp, 0, sizeof(ASSOC)); 737 737 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 738 738 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 739 CheckApp_QuoteAddExe(psz, temp.cl);740 memcpy(temp.cl, psz , strlen(psz) + 1);739 NormalizeCmdLine(pszWorkBuf, temp.cl); 740 memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1); 741 741 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 742 742 rstrip(temp.sig); … … 840 840 ASSOC temp; 841 841 CHAR dummy[34]; 842 PSZ psz ;842 PSZ pszWorkBuf; 843 843 replace = TRUE; 844 844 … … 847 847 LM_QUERYSELECTION, 848 848 MPFROMSHORT(LIT_CURSOR), MPVOID); 849 psz = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__);849 pszWorkBuf = xmalloc(MAXCOMLINESTRG, pszSrcFile, __LINE__); 850 850 memset(&temp, 0, sizeof(ASSOC)); 851 851 WinQueryDlgItemText(hwnd, ASS_MASK, sizeof(temp.mask), temp.mask); 852 852 WinQueryDlgItemText(hwnd, ASS_CL, sizeof(temp.cl), temp.cl); 853 CheckApp_QuoteAddExe(psz, temp.cl);854 memcpy(temp.cl, psz , strlen(psz) + 1);853 NormalizeCmdLine(pszWorkBuf, temp.cl); 854 memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1); 855 855 WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig); 856 856 rstrip(temp.sig);
Note:
See TracChangeset
for help on using the changeset viewer.