Changeset 1753
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/dll/arccnrs.c
r1752 r1753 626 626 if (!nobzip) { 627 627 ftarbz = TRUE; 628 if (DosQueryAppType("bzip .exe" , &apptype)) {628 if (DosQueryAppType("bzip2.exe" , &apptype)) { 629 629 nobzip = TRUE; 630 temp = saymsg(MB_YESNO, HWND_DESKTOP, NullStr, GetPString(IDS_ARCNOBZIP)); 631 if (temp != MBID_NO) 632 return 0; 630 if (!fDontAskBzip) { 631 temp = saymsg2(NULL, 3, 632 HWND_DESKTOP, 633 NullStr, 634 GetPString(IDS_ARCNOBZIP)); 635 if (temp == SM2_NO ||temp == SM2_CANCEL) 636 return 0; 637 else if (temp == SM2_DONTASK) { 638 fDontAskBzip = TRUE; 639 PrfWriteProfileData(fmprof, FM3Str, "DontAskBzip", &fDontAskBzip, sizeof(BOOL)); 640 } 641 } 633 642 } 634 643 } 635 else if (!nogzip) { 636 ftargz = TRUE; 644 else if (!nogzip) { 645 ftargz = TRUE; 637 646 if (DosQueryAppType("gzip.exe" , &apptype)) { 638 647 nogzip = TRUE; 639 temp = saymsg(MB_YESNO, HWND_DESKTOP, NullStr, GetPString(IDS_ARCNOGZIP)); 640 if (temp != MBID_NO) 641 return 0; 648 if (!fDontAskGzip) { 649 temp = saymsg2(NULL, 3, 650 HWND_DESKTOP, 651 NullStr, 652 GetPString(IDS_ARCNOGZIP)); 653 if (temp == SM2_NO || temp == SM2_CANCEL) 654 return 0; 655 else if (temp == SM2_DONTASK) { 656 fDontAskGzip = TRUE; 657 PrfWriteProfileData(fmprof, FM3Str, "DontAskGzip", &fDontAskGzip, sizeof(BOOL)); 658 } 659 } 642 660 } 643 661 } … … 734 752 if (info->test) 735 753 strcpy(TestStr, info->test); 736 else 754 else { 755 strcpy(TestStr, ""); 737 756 notest = TRUE; 757 } 738 758 } 739 759 else if (notest && info->test) { … … 990 1010 } 991 1011 else if ((ftarbz && !nobzip) || (ftargz && !nogzip)) 992 info->test = xstrdup(ftarbz ? "bzip .exe -t" : "gzip.exe - t",1012 info->test = xstrdup(ftarbz ? "bzip2.exe -t" : "gzip.exe - t", 993 1013 pszSrcFile, __LINE__); 1014 else if (rc) { 1015 strcpy(Temp, info->test); 1016 info->test = NULL; 1017 } 994 1018 ad.errmsg = errstr; 995 1019 WinDlgBox(HWND_DESKTOP, … … 1000 1024 else if ((ftarbz && !nobzip) || (ftargz && !nogzip)) 1001 1025 info->test = xstrdup("", pszSrcFile, __LINE__); 1026 else if (rc) 1027 info->test = xstrdup(Temp, pszSrcFile, __LINE__); 1002 1028 } 1003 1029 else  - 
      
trunk/dll/init.c
r1750 r1753 126 126 01 Mar 14 JBS Ticket #524: Made "searchapath" thread-safe. Function names and signatures were changed. 127 127 So calls to these functions had to be changed. 128 02 Mar 14 GKY Fixed typo that reversed the function of the saymsg dialog g/bzip check. 129 Added option to suppress message regarding missing bzip2.exe 130 or gzip.exe on TAR.B/GZ archives. 128 131 129 132 ***********************************************************************/ … … 245 248 BOOL fWantFirstTimeInit; 246 249 BOOL fUseShellEnv; 250 BOOL fDontAskBzip; 251 BOOL fDontAskGzip; 247 252 //BOOL fDrivetoSkip[26]; 248 253 HPOINTER hptrApp; … … 1620 1625 if (fThreadNotes) 1621 1626 ShowNote(); 1627 size = sizeof(BOOL); 1628 PrfQueryProfileData(fmprof, FM3Str, "DontAskBzip", &fDontAskBzip, &size); 1629 size = sizeof(BOOL); 1630 PrfQueryProfileData(fmprof, FM3Str, "DontAskGzip", &fDontAskGzip, &size); 1622 1631 1623 1632 LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE);  - 
      
trunk/dll/init.h
r1720 r1753 36 36 started from fm2 after fm2 has been started with stdout and stderr 37 37 redirected to a file. 38 02 Mar 14 GKY Fixed typo that reversed the function of the saymsg dialog g/bzip check. 39 Added option to suppress message regarding missing bzip2.exe 40 or gzip.exe on TAR.B/GZ archives. 38 41 39 42 ***********************************************************************/ … … 207 210 extern BOOL fWantFirstTimeInit; 208 211 extern BOOL fUseShellEnv; 212 extern BOOL fDontAskBzip; 213 extern BOOL fDontAskGzip; 209 214 extern HPOINTER hptrApp; 210 215 extern HPOINTER hptrArc;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  