Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1306 r1312 158 158 159 159 #pragma data_seg(GLOBAL1) 160 HMTX hmtxDeleteDir; 160 161 HMTX hmtxFM2Globals; 161 162 ULONG OS2ver[2]; … … 1181 1182 sizeof(PVOID)); 1182 1183 1183 DosCreateMutexSem("\\SEM\\GLOBAL1", &hmtxFM2Globals, 0L, FALSE); 1184 1184 if (DosCreateMutexSem("\\SEM\\GLOBAL1", &hmtxFM2Globals, 0L, FALSE)) 1185 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1186 "DosCreateMutexSem"); 1187 if (DosCreateMutexSem("\\SEM\\DELETDIR", &hmtxDeleteDir, 0L, FALSE)) 1188 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1189 "DosCreateMutexSem"); 1185 1190 /* 1186 1191 * set some defaults (note: everything else automatically initialized -
trunk/dll/init.h
r1303 r1312 92 92 extern ULONGLONG ullTmpSpaceNeeded; 93 93 extern HMTX hmtxFM2Globals; 94 extern HMTX hmtxDeleteDir; 94 95 95 96 #endif // INIT_H -
trunk/dll/worker.c
r1275 r1312 481 481 ex.arcname, 482 482 maskspaces ? "\"" : NullStr, 483 *ex.masks ? ex.masks : " *",483 *ex.masks ? ex.masks : "\"*\"", 484 484 maskspaces ? "\"" : NullStr) && 485 485 !stricmp(ex.extractdir, wk->directory)) { … … 1604 1604 FIL_STANDARD, 1605 1605 &fsa, (ULONG) sizeof(FILESTATUS3)); 1606 if (fsa.attrFile & FILE_DIRECTORY) { 1606 if (fsa.attrFile & FILE_DIRECTORY) { 1607 //priority_bumped(); 1608 DosRequestMutexSem(hmtxDeleteDir, SEM_INDEFINITE_WAIT); 1607 1609 sprintf(prompt, 1608 1610 GetPString(IDS_DELETINGTEXT), wk->li->list[x]); … … 1619 1621 error = DosDeleteDir(wk->li->list[x]); 1620 1622 else 1621 DosDeleteDir(wk->li->list[x]); 1623 DosDeleteDir(wk->li->list[x]); 1624 DosReleaseMutexSem(hmtxDeleteDir); 1625 //priority_normal(); 1622 1626 } 1623 1627 else { … … 1695 1699 AddNote(prompt); 1696 1700 } 1697 if ( fSyncUpdates||1701 if ((fSyncUpdates && !(fsa.attrFile & FILE_DIRECTORY)) || 1698 1702 AddToList(wk->li->list[x], &files, &numfiles, &numalloc)) 1699 1703 Broadcast(hab2,
Note:
See TracChangeset
for help on using the changeset viewer.
