Changeset 888 for trunk/dll/arccnrs.c
- Timestamp:
- Dec 22, 2007, 11:02:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r872 r888 194 194 if (*binview) 195 195 ExecOnList((HWND) 0, binview, WINDOWED | SEPARATE, NULL, list, 196 NULL );196 NULL, pszSrcFile, __LINE__); 197 197 else 198 198 StartMLEEditor(HWND_DESKTOP, 16 + 4 + 1, ad->arcname, hwnd); … … 201 201 if (*viewer) { 202 202 ExecOnList((HWND) 0, viewer, WINDOWED | SEPARATE | 203 204 NULL, list, NULL);203 (fViewChild ? CHILD : 0), 204 NULL, list, NULL, pszSrcFile, __LINE__); 205 205 } 206 206 else … … 213 213 ad = WinQueryWindowPtr(hwnd, QWL_USER); 214 214 runemf2(SEPARATEKEEP | WINDOWED | MAXIMIZED, 215 hwnd, NULL, NULL,215 hwnd, pszSrcFile, __LINE__, NULL, NULL, 216 216 "%s %s", 217 217 ad->info->test, 218 218 BldQuotedFileName(szQuotedArcName, ad->arcname)); 219 // runemf2(SEPARATEKEEP | WINDOWED | MAXIMIZED,220 // hwnd, NULL, NULL, "%s %s%s%s", ad->info->test,221 // needs_quoting(ad->arcname) ? "\"" : NullStr,222 // ad->arcname,223 // needs_quoting(ad->arcname) ? "\"" : NullStr);224 219 break; 225 220 } … … 544 539 p = GetCmdSpec(TRUE); 545 540 runemf2(SEPARATE | INVISIBLE | MINIMIZED | BACKGROUND | WAIT, 546 hwndCnr, NULL, "DOS_BACKGROUND_EXECUTION=1",541 hwndCnr, pszSrcFile, __LINE__, NULL, "DOS_BACKGROUND_EXECUTION=1", 547 542 "%s /C %s %s >%s", 548 543 p, // shell … … 550 545 BldQuotedFileName(s, arcname), 551 546 arctemp); 552 // runemf2(SEPARATE | INVISIBLE | MINIMIZED | BACKGROUND | WAIT,553 // hwndCnr,554 // NULL,555 // "DOS_BACKGROUND_EXECUTION=1",556 // "%s /C %s %s%s%s > %s",557 // p,558 // info->list,559 // needs_quoting(arcname) ? "\"" : NullStr,560 // arcname,561 // needs_quoting(arcname) ? "\"" : NullStr,562 // arctemp);563 547 } 564 548 else { … … 586 570 else { 587 571 runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT, 588 hwndCnr, NULL, NULL,572 hwndCnr, pszSrcFile, __LINE__, NULL, NULL, 589 573 "%s %s", 590 574 info->list, 591 575 BldQuotedFileName(s, arcname)); 592 // runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT,593 // hwndCnr, NULL, NULL, "%s %s%s%s", info->list,594 // needs_quoting(arcname) ? "\"" : NullStr,595 // arcname,596 // needs_quoting(arcname) ? "\"" : NullStr);597 576 oldstdout = fileno(stdout); 598 577 DosError(FERR_DISABLEHARDERR); … … 1386 1365 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"%s %s %s\r[%s]",dcd->info->extract,dcd->arcname,membername,construct); 1387 1366 runemf2(SEPARATE | WINDOWED | WAIT | 1388 1389 dcd->hwndClient, construct, NULL,1367 (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED), 1368 dcd->hwndClient, pszSrcFile, __LINE__, construct, NULL, 1390 1369 "%s %s %s", 1391 1370 dcd->info->extract, 1392 1371 BldQuotedFileName(szQuotedArcName, dcd->arcname), 1393 1372 BldQuotedFileName(szQuotedMemberName, membername)); 1394 // runemf2(SEPARATE | WINDOWED | WAIT |1395 // (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED) |1396 // WAIT,1397 // dcd->hwndClient, construct, NULL, "%s %s%s%s %s%s%s",1398 // dcd->info->extract,1399 // needs_quoting(dcd->arcname) ? "\"" : NullStr,1400 // dcd->arcname,1401 // needs_quoting(dcd->arcname) ? "\"" : NullStr,1402 // needs_quoting(membername) ? "\"" : NullStr,1403 // membername,1404 // needs_quoting(membername) ? "\"" : NullStr);1405 1373 BldFullPathName(construct, construct, membername); 1406 // if (*construct && construct[strlen(construct) - 1] != '\\')1407 // strcat(construct, "\\");1408 // strcat(construct, membername);1409 1374 if (IsFile(construct) != -1) { 1410 1375 rename(construct, filename); … … 1522 1487 } 1523 1488 runemf2(SEPARATE | WINDOWED | WAIT | 1524 1525 dcd->hwndClient, dcd->workdir, NULL,1489 (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED), 1490 dcd->hwndClient, pszSrcFile, __LINE__, dcd->workdir, NULL, 1526 1491 "%s %s %s", 1527 1492 dcd->info->exwdirs ? dcd->info->exwdirs : … … 1529 1494 BldQuotedFileName(szQuotedArcName, dcd->arcname), 1530 1495 BldQuotedFileName(szQuotedMemberName, s)); 1531 // runemf2(SEPARATE | WINDOWED |1532 // (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED) |1533 // WAIT,1534 // dcd->hwndClient, dcd->workdir, NULL, "%s %s%s%s %s%s%s",1535 // dcd->info->exwdirs ? dcd->info->exwdirs :1536 // dcd->info->extract,1537 // needs_quoting(dcd->arcname) ? "\"" : NullStr,1538 // dcd->arcname,1539 // needs_quoting(dcd->arcname) ? "\"" : NullStr,1540 // needs_quoting(s) ? "\"" : NullStr,1541 // s,1542 // needs_quoting(s) ? "\"" : NullStr);1543 1496 if (!dcd->info->exwdirs) { 1544 1497 p = s; … … 1607 1560 1608 1561 BldQuotedFileName(szBuffer + strlen(szBuffer), ad.arcname); 1609 // if (needs_quoting(ad.arcname))1610 // strcat(szBuffer, "\"");1611 // strcat(szBuffer, ad.arcname);1612 // if (needs_quoting(ad.arcname))1613 // strcat(szBuffer, "\"");1614 1562 1615 1563 p = &szBuffer[strlen(szBuffer)]; // Remeber where archiver name ends … … 1619 1567 1620 1568 BldQuotedFileName(szBuffer + strlen(szBuffer), ad.mask.szMask); 1621 // if (needs_quoting(ad.mask.szMask))1622 // strcat(szBuffer, "\"");1623 // strcat(szBuffer, ad.mask.szMask);1624 // if (needs_quoting(ad.mask.szMask))1625 // strcat(szBuffer, "\"");1626 1569 } 1627 1570 strcat(szBuffer, " "); … … 1632 1575 1633 1576 if (IsFile(li->list[x])) 1634 1577 BldQuotedFileName(szBuffer + strlen(szBuffer), li->list[x]); 1635 1578 else 1636 BldQuotedFullPathName(szBuffer + strlen(szBuffer), li->list[x], "*"); 1637 1638 // if (needs_quoting(li->list[x])) 1639 // strcat(szBuffer, "\""); 1640 // strcat(szBuffer, li->list[x]); 1641 // if (!IsFile(li->list[x])) { 1642 // if (szBuffer[strlen(szBuffer) - 1] != '\\') 1643 // strcat(szBuffer, "\\"); 1644 // strcat(szBuffer, "*"); 1645 // } 1646 // if (needs_quoting(li->list[x])) 1647 // strcat(szBuffer, "\""); 1579 BldQuotedFullPathName(szBuffer + strlen(szBuffer), li->list[x], "*"); 1648 1580 1649 1581 x++; … … 1651 1583 strlen(li->list[x]) + 5 > 1024) { 1652 1584 runemf2(SEPARATE | WINDOWED | 1653 1654 WAIT,1655 hwnd,NULL, NULL, "%s", szBuffer);1585 (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED) | 1586 WAIT, hwnd, pszSrcFile, __LINE__, 1587 NULL, NULL, "%s", szBuffer); 1656 1588 *p = 0; 1657 1589 } … … 1703 1635 strcat(cl, " "); 1704 1636 BldQuotedFileName(cl + strlen(cl), dcd->arcname); 1705 // if (li->type == IDM_DELETE)1706 // sprintf(cl, "%s %s%s%s", dcd->info->delete,1707 // (needs_quoting(dcd->arcname)) ? "\"" : NullStr,1708 // dcd->arcname,1709 // (needs_quoting(dcd->arcname)) ? "\"" : NullStr);1710 // else1711 // sprintf(cl, "%s %s%s%s", dcd->info->create,1712 // (needs_quoting(dcd->arcname)) ? "\"" : NullStr,1713 // dcd->arcname,1714 // (needs_quoting(dcd->arcname)) ? "\"" : NullStr);1715 1637 endofit = &cl[strlen(cl)]; 1716 1638 z = 0; 1717 1639 do { 1718 1640 for (x = z; li->list[x] && 1719 1641 strlen(cl) + strlen(li->list[x]) < 999; x++) { 1720 1642 strcat(cl, " "); 1721 1643 BldQuotedFileName(cl + strlen(cl), li->list[x]); 1722 // if (needs_quoting(li->list[x]))1723 // strcat(cl, "\"");1724 // strcat(cl, li->list[x]);1725 // if (needs_quoting(li->list[x]))1726 // strcat(cl, "\"");1727 1644 } 1728 1645 z = x; 1729 1646 runemf2(SEPARATE | WINDOWED | WAIT | 1730 1731 hwnd, NullStr, NULL, "%s", cl);1647 (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED), 1648 hwnd, pszSrcFile, __LINE__, NullStr, NULL, "%s", cl); 1732 1649 *endofit = 0; 1733 1650 } while (li->list[x]); … … 1834 1751 strcat(cl, " "); 1835 1752 BldQuotedFileName(cl + strlen(cl), li->arcname); 1836 // sprintf(cl, "%s %s%s%s", (li->type == IDM_EXTRACT || 1837 // ((li->type == IDM_VIEW 1838 // || li->type == IDM_VIEWTEXT 1839 // || li->type == IDM_VIEWBINARY 1840 // || li->type == IDM_VIEWARCHIVE 1841 // || li->type == IDM_PRINT 1842 // || li->type == IDM_EDIT 1843 // || li->type == IDM_EDITTEXT 1844 // || li->type == IDM_EDITBINARY 1845 // && li->type == IDM_MCIPLAY) 1846 // && !li->info->exwdirs)) ? li->info-> 1847 // extract : li->info->exwdirs, 1848 // needs_quoting(li->arcname) ? "\"" : NullStr, 1849 // li->arcname, 1850 // needs_quoting(li->arcname) ? "\"" : NullStr); 1851 endofit = &cl[strlen(cl)]; 1852 z = 0; 1853 do { 1854 for (x = z; li->list[x] && 1753 endofit = &cl[strlen(cl)]; 1754 z = 0; 1755 do { 1756 for (x = z; li->list[x] && 1855 1757 strlen(cl) + strlen(li->list[x]) < 999; x++) { 1856 1758 strcat(cl, " "); 1857 1759 BldQuotedFileName(cl + strlen(cl), li->list[x]); 1858 // if (needs_quoting(li->list[x]))1859 // strcat(cl, "\"");1860 // strcat(cl, li->list[x]);1861 // if (needs_quoting(li->list[x]))1862 // strcat(cl, "\"");1863 1760 ptr = li->list[x]; 1864 1761 while (*ptr) { … … 1870 1767 z = x; 1871 1768 runemf2(SEPARATE | WINDOWED | 1872 1873 WAIT,1874 hwnd,li->targetpath, NULL, "%s", cl);1769 (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED) | 1770 WAIT, hwnd, pszSrcFile, __LINE__, 1771 li->targetpath, NULL, "%s", cl); 1875 1772 *endofit = 0; 1876 1773 } while (li->list[x]); … … 1930 1827 WINDOWED | SEPARATEKEEP | PROMPT, 1931 1828 li->targetpath, 1932 NULL, GetPString(IDS_EXECARCFILETITLETEXT)); 1829 NULL, GetPString(IDS_EXECARCFILETITLETEXT), 1830 pszSrcFile, __LINE__); 1933 1831 else if (li->type == IDM_VIRUSSCAN) 1934 1832 ExecOnList(hwnd, virus, PROMPT | WINDOWED | SEPARATEKEEP, 1935 1833 li->targetpath, NULL, 1936 GetPString(IDS_VIRUSSCANARCHIVETITLETEXT)); 1834 GetPString(IDS_VIRUSSCANARCHIVETITLETEXT), 1835 pszSrcFile, __LINE__); 1937 1836 else if (li->type == IDM_VIEW || li->type == IDM_VIEWTEXT || 1938 1837 li->type == IDM_VIEWBINARY || li->type == IDM_EDIT || … … 2035 1934 bined), 2036 1935 WINDOWED | SEPARATE, li->targetpath, li->list, 2037 NULL );1936 NULL, pszSrcFile, __LINE__); 2038 1937 } 2039 1938 else { … … 2935 2834 if (dcd->info->extract) 2936 2835 runemf2(SEPARATE | WINDOWED | 2937 2938 hwnd, dcd->directory, NULL, "%s %s",2939 2836 (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED), 2837 hwnd, pszSrcFile, __LINE__, 2838 dcd->directory, NULL, "%s %s", dcd->info->extract, 2940 2839 BldQuotedFileName(szQuotedArcName, dcd->arcname)); 2941 // runemf2(SEPARATE | WINDOWED |2942 // (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED),2943 // hwnd, dcd->directory, NULL, "%s %s%s%s",2944 // dcd->info->extract,2945 // needs_quoting(dcd->arcname) ? "\"" : NullStr,2946 // dcd->arcname,2947 // needs_quoting(dcd->arcname) ? "\"" : NullStr);2948 2840 if (SHORT1FROMMP(mp1) == IDM_ARCEXTRACTEXIT) 2949 2841 PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID); … … 2954 2846 if (dcd->info->exwdirs) 2955 2847 runemf2(SEPARATE | WINDOWED | 2956 2957 hwnd, dcd->directory, NULL,2958 2848 (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED), 2849 hwnd, pszSrcFile, __LINE__, 2850 dcd->directory, NULL, "%s %s", 2959 2851 dcd->info->exwdirs, 2960 2852 BldQuotedFileName(szQuotedArcName, dcd->arcname)); 2961 // runemf2(SEPARATE | WINDOWED |2962 // (fArcStuffVisible ? 0 : BACKGROUND | MINIMIZED),2963 // hwnd, dcd->directory, NULL, "%s %s%s%s",2964 // dcd->info->exwdirs,2965 // needs_quoting(dcd->arcname) ? "\"" : NullStr,2966 // dcd->arcname,2967 // needs_quoting(dcd->arcname) ? "\"" : NullStr);2968 2853 if (SHORT1FROMMP(mp1) == IDM_ARCEXTRACTWDIRSEXIT) 2969 2854 PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID); … … 3033 2918 if (dcd->info->test) 3034 2919 runemf2(SEPARATEKEEP | WINDOWED | MAXIMIZED, 3035 hwnd, NULL, NULL,2920 hwnd, pszSrcFile, __LINE__, NULL, NULL, 3036 2921 "%s %s",dcd->info->test, 3037 2922 BldQuotedFileName(szQuotedArcName, dcd->arcname)); 3038 // runemf2(SEPARATEKEEP | WINDOWED | MAXIMIZED,3039 // hwnd, NULL, NULL, "%s %s%s%s",dcd->info->test,3040 // needs_quoting(dcd->arcname) ? "\"" : NullStr,3041 // dcd->arcname,3042 // needs_quoting(dcd->arcname) ? "\"" : NullStr);3043 2923 break; 3044 2924
Note:
See TracChangeset
for help on using the changeset viewer.