Changeset 1753 for trunk/dll/arccnrs.c
- Timestamp:
- Mar 2, 2014, 7:58:53 PM (11 years ago)
- File:
-
- 1 edited
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
Note:
See TracChangeset
for help on using the changeset viewer.