Changeset 1878 for trunk/dll/arccnrs.c
- Timestamp:
- Oct 12, 2015, 12:24:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1877 r1878 2130 2130 (li->type == IDM_EDITTEXT && *editor) || 2131 2131 (li->type == IDM_EDITBINARY && *bined)) { 2132 //DosSleep(32); // Added WAIT to runemf2 12-12-08 GKY2133 2132 ExecOnList(hwnd, ((li->type == IDM_VIEWTEXT) ? viewer : 2134 2133 (li->type == IDM_VIEWBINARY) ? binview : 2135 2134 (li->type == IDM_EDITTEXT) ? editor : 2136 2135 bined), 2137 WINDOWED | SEPARATE, NULL, NULL, // li->targetpath,2136 WINDOWED | SEPARATE, NULL, NULL, 2138 2137 li->list, 2139 2138 NULL, pszSrcFile, __LINE__); … … 2238 2237 WinSendMsg(dcd->hwndCnr, WM_COMMAND, 2239 2238 MPFROM2SHORT(IDM_COLLECTOR, 0), MPVOID); 2240 DosSleep(10); //05 Aug 07 GKY 1282239 DosSleep(10); 2241 2240 if (Collector) { 2242 2241 if (!PostMsg(Collector, WM_COMMAND, … … 2266 2265 if (dcd) { 2267 2266 if (*dcd->workdir) { 2268 DosSleep(16); //05 Aug 07 GKY 332267 DosSleep(16); 2269 2268 wipeallf(TRUE, "%s\\*", dcd->workdir); 2270 2269 if (rmdir(dcd->workdir)) { 2271 DosSleep(100); //05 Aug 07 GKY 2562270 DosSleep(100); 2272 2271 wipeallf(TRUE, "%s\\*", dcd->workdir); 2273 2272 rmdir(dcd->workdir); … … 2635 2634 if (!SetDir(dcd->hwndParent, hwnd, s, 0)) { 2636 2635 if (stricmp(dcd->directory, s)) { 2637 //DosEnterCritSec(); //GKY 11-29-082638 2636 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 2639 2637 strcpy(lastextractpath, s); 2640 2638 DosReleaseMutexSem(hmtxFM2Globals); 2641 //DosExitCritSec();2642 2639 } 2643 2640 strcpy(dcd->directory, s); … … 2667 2664 SWP swp; 2668 2665 CHAR *filename = mp1; 2669 //printf("%s %d UM_ENTER %s\n",__FILE__, __LINE__, filename); fflush(stdout);2670 2666 if (IsFile(filename) != 1) { 2671 2667 free(mp1); … … 3017 3013 } 3018 3014 WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE); 3019 DosSleep(100); //05 Aug 07 GKY 1283015 DosSleep(100); 3020 3016 } 3021 3017 } … … 3090 3086 if (mp2) { 3091 3087 if (stricmp(dcd->directory, (CHAR *) mp2)) { 3092 //DosEnterCritSec(); //GKY 11-29-083093 3088 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 3094 3089 strcpy(lastextractpath, (CHAR *) mp2); 3095 3090 MakeValidDir(lastextractpath); 3096 3091 DosReleaseMutexSem(hmtxFM2Globals); 3097 //DosExitCritSec();3098 3092 } 3099 3093 strcpy(dcd->directory, (CHAR *) mp2); … … 3370 3364 LISTINFO *li; 3371 3365 3372 //DosBeep(500, 100); // fixme to know why beep?3373 3366 li = DoFileDrop(hwnd, dcd->arcname, FALSE, mp1, mp2); 3374 //DosBeep(50, 100); // fixme to know why beep?3375 3367 CheckPmDrgLimit(((PCNRDRAGINFO)mp2)->pDragInfo); 3376 3368 if (li) { … … 3739 3731 } 3740 3732 if (!*dcd->directory && *lastextractpath) { 3741 //DosEnterCritSec(); //GKY 11-29-083742 3733 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 3743 3734 strcpy(dcd->directory, lastextractpath); 3744 3735 DosReleaseMutexSem(hmtxFM2Globals); 3745 //DosExitCritSec();3746 3736 } 3747 3737 if (!*dcd->directory) {
Note:
See TracChangeset
for help on using the changeset viewer.