Changeset 1354 for trunk/dll/worker.c
- Timestamp:
- Dec 25, 2008, 11:43:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/worker.c
r1351 r1354 679 679 INT type; 680 680 FILESTATUS4L fs4; 681 BOOL isnewer, existed ;681 BOOL isnewer, existed, fResetVerify = FALSE; 682 682 683 683 type = (wk->li->type == IDM_RENAME) ? MOVE : … … 805 805 (usedtarget) ? GetPString(IDS_TOTARGETTEXT) : 806 806 NullStr); 807 AddNote(message); 807 AddNote(message); 808 if (fVerify && (driveflags[toupper(*wk->li->targetpath) - 'A'] & DRIVE_WRITEVERIFYOFF) | 809 (driveflags[toupper(*wk->li->list[x]) - 'A'] & DRIVE_WRITEVERIFYOFF)) { 810 DosSetVerify(FALSE); 811 fResetVerify = TRUE; 812 } 808 813 if (plen) { 809 814 /* make directory/ies, if required */ … … 822 827 if (fRealIdle) 823 828 priority_idle(); 824 rc = docopyf(type, wk->li->list[x], "%s", newname); 829 rc = docopyf(type, wk->li->list[x], "%s", newname); 830 if (fResetVerify) { 831 DosSetVerify(fVerify); 832 fResetVerify = FALSE; 833 } 825 834 priority_normal(); 826 835 if (rc) { … … 907 916 wk->li->list[x], 908 917 GetPString(IDS_TOTEXT), newname); 909 if ( //fSyncUpdates ||918 if ((driveflags[*wk->li->targetpath - 'A'] & DRIVE_RSCANNED) && 910 919 AddToList(wk->li->list[x], 911 920 &files, &numfiles, &numalloc)) … … 914 923 UM_UPDATERECORD, 915 924 MPFROMP(wk->li->list[x]), MPVOID); 916 if ( //fSyncUpdates ||925 if ((driveflags[*wk->li->targetpath - 'A'] & DRIVE_RSCANNED) && 917 926 AddToList(newname, &files, &numfiles, &numalloc)) 918 927 Broadcast(hab2, … … 1019 1028 Abort: 1020 1029 1021 if (files) { 1022 Broadcast(hab2, 1023 wk->hwndCnr, 1024 UM_UPDATERECORDLIST, MPFROMP(files), MPVOID); 1030 if (files) { 1031 if (driveflags[*wk->li->targetpath - 'A'] & DRIVE_RSCANNED) 1032 Broadcast(hab2, 1033 wk->hwndCnr, 1034 UM_UPDATERECORDLIST, MPFROMP(files), MPVOID); 1025 1035 // DbgMsg(pszSrcFile, __LINE__, "UM_UPDATERECORD %s", *files); 1026 1036 FreeList(files); … … 1611 1621 if (!wk->li->list || !wk->li->list[0]) 1612 1622 break; 1613 } 1623 } 1624 if (fVerify && driveflags[toupper(*wk->li->list[0]) - 'A'] & DRIVE_WRITEVERIFYOFF) 1625 DosSetVerify(FALSE); 1614 1626 DosRequestMutexSem(hmtxFM2Delete, SEM_INDEFINITE_WAIT); // Prevent race 12-3-08 GKY 1615 1627 for (x = 0; wk->li->list[x]; x++) { … … 1698 1710 __LINE__, 1699 1711 GetPString(IDS_DELETEFAILED2TEXT), 1700 wk->li->list[x]) == MBID_CANCEL) 1701 break; 1712 wk->li->list[x]) == MBID_CANCEL) { 1713 DosSetVerify(fVerify); 1714 break; 1715 } 1702 1716 } 1703 1717 else { … … 1717 1731 } 1718 1732 } // for 1719 } 1733 } 1734 if (fVerify) 1735 DosSetVerify(fVerify); 1720 1736 break; 1721 1737 } // switch
Note:
See TracChangeset
for help on using the changeset viewer.