Changeset 1878
- Timestamp:
- Oct 12, 2015, 12:24:39 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 12 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) { -
trunk/dll/assoc.c
r1877 r1878 886 886 temp.offset = atol(dummy); 887 887 } 888 //bstrip(temp.mask);889 888 sprintf(key, "ASSOC.%senv", temp.pszCmdLine); 890 889 PrfWriteProfileString(fmprof, FM3Str, key, NULL); … … 980 979 temp.offset = atol(dummy); 981 980 } 982 //bstrip(temp.mask);983 981 sprintf(key, "ASSOC.%senv", temp.pszCmdLine); 984 982 PrfWriteProfileString(fmprof, FM3Str, key, NULL); -
trunk/dll/autoview.c
r1628 r1878 45 45 #include <string.h> 46 46 #include <ctype.h> 47 // #include <process.h> // _beginthread48 47 49 48 #define INCL_DOS -
trunk/dll/cmdline.c
r1859 r1878 99 99 LINKCMDLINES *info, *last = NULL, *CmdLineHead; 100 100 PSZ pszCmdLine; 101 //CHAR s[1024];102 101 INT x = 0; 103 102 CHAR *moder = "r"; … … 156 155 FILE *fp; 157 156 PSZ pszCmdLine; 158 //CHAR s[CCHMAXPATH + 14];159 157 CHAR *modew = "w"; 160 158 … … 399 397 MLEsetlimit(WinWindowFromID(hwnd, EXEC_ENVIRON), 1000); 400 398 WinSetDlgItemText(hwnd, EXEC_ENVIRON, ex->environment); 401 // WinEnableWindow(WinWindowFromID(hwnd,EXEC_ENVIRON),FALSE);402 399 WinSendMsg(hwnd, UM_SETUP, MPVOID, MPVOID); 403 400 PosOverOkay(hwnd); … … 421 418 strcpy(executable, ex->path); 422 419 AddBackslashToPath(executable); 423 //if (executable[strlen(executable) - 1] != '\\')424 // strcat(executable, "\\");425 420 } 426 421 else … … 438 433 *p = 0; 439 434 if (IsFile(executable) == -1) { 440 // p = searchpath(executable);441 // if (*p)442 435 if (SearchPathForFile(PCSZ_PATH, executable, executable)) // jbs: OK to have same source and destination? 443 // strcpy(executable, p);444 // else {445 436 WinSetDlgItemText(hwnd, 446 437 EXEC_WARNING2, 447 438 (CHAR *) GetPString(IDS_CANTFINDFILETEXT)); 448 439 break; 449 // }450 440 } 451 441 } -
trunk/dll/collect.c
r1836 r1878 98 98 #include <share.h> 99 99 #include <limits.h> // USHRT_MAX 100 // #include <process.h> // _beginthread101 100 102 101 #define INCL_DOS // QSV_MS_COUNT … … 2583 2582 2584 2583 pci = (PCNRITEM) ((PCNRDRAGINFO) mp2)->pRecord; 2585 // if(SHORT1FROMMP(mp1) == CN_DRAGAFTER)2586 // pci = NULL;2587 2584 pDInfo = ((PCNRDRAGINFO) mp2)->pDragInfo; 2588 2585 if (!DrgAccessDraginfo(pDInfo)) { -
trunk/dll/colors.c
r1498 r1878 153 153 co->colors[co->currentcolor] = (LONG) (SHORT1FROMMP(mp1) - 154 154 COLOR_FIRST); 155 //DosBeep(1000, 1); // fixme to be gone?156 155 } 157 156 break; -
trunk/dll/comp.c
r1877 r1878 1625 1625 UINT l; 1626 1626 UINT r; 1627 // UINT cntr;1628 1627 FILELIST **filesl = NULL; 1629 1628 FILELIST **filesr = NULL; … … 2012 2011 pcir->pszDisplayName = pcir->pszFileName + lenr; 2013 2012 pcir->attrFile = filesr[r]->attrFile; 2014 // pcir->rc.hptrIcon = hptrFile;2015 2013 pcir->pszDispAttr = FileAttrToString(pcir->attrFile); 2016 2014 pcir->cbFile = filesr[r]->cbFile; … … 2671 2669 case BN_CLICKED: 2672 2670 cmp = INSTDATA(hwnd); 2673 //if (cmp)2674 // *cmp->rightlist = 0;2675 2671 PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID); 2676 2672 PostMsg(hwnd, UM_SETDIR, MPVOID, MPVOID); … … 2923 2919 WinSetDlgItemText(hwnd, COMP_NOTE, 2924 2920 (CHAR *) GetPString(IDS_COMPHOLDFILTERINGTEXT)); 2925 // cmp->dcd.suspendview = 1; // 12 Jan 08 SHL appears not to be used here2926 2921 priority_idle(); // Don't hog resources 2927 2922 WinSendMsg(GetHwndLeft(hwnd), CM_FILTER, MPFROMP(Filter), … … 2930 2925 MPFROMP(&cmp->dcd.mask)); 2931 2926 priority_normal(); 2932 // cmp->dcd.suspendview = 0; // 12 Jan 08 SHL appears not to be used here2933 2927 if (*cmp->dcd.mask.szMask) { 2934 2928 sprintf(s, -
trunk/dll/copyf.c
r1877 r1878 86 86 BOOL ignorereadonly = FALSE; 87 87 88 //static CHAR default_disk(VOID);89 //static INT unlink_allf(CHAR * string, ...);90 91 88 #ifndef WinMoveObject 92 89 HOBJECT APIENTRY WinMoveObject(HOBJECT hObjectofObject, -
trunk/dll/dircnrs.c
r1877 r1878 103 103 #include <ctype.h> 104 104 #include <limits.h> 105 //#include <malloc.h> // _msize _heapchk106 // #include <process.h> // _beginthread107 105 108 106 #define INCL_DOS … … 2164 2162 TileChildren(dcd->hwndParent, TRUE); 2165 2163 WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE); 2166 DosSleep(100); // 05 Aug 07 GKY 2502164 DosSleep(100); 2167 2165 } 2168 2166 } … … 2187 2185 2188 2186 case IDM_COLLECTOR: 2189 DosSleep(32); // 05 Aug 07 GKY 642187 DosSleep(32); 2190 2188 { 2191 2189 CHAR **list; … … 2703 2701 WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, 2704 2702 SWP_ACTIVATE); 2705 DosSleep(100); //05 Aug 07 GKY 2502703 DosSleep(100); 2706 2704 } 2707 2705 } … … 2773 2771 if (!cmdloaded) 2774 2772 load_commands(); 2775 x = SHORT1FROMMP(mp1); // - IDM_COMMANDSTART;2773 x = SHORT1FROMMP(mp1); 2776 2774 if (x >= 0) { 2777 //x++;2778 2775 RunCommand(hwnd, x); 2779 2776 if (fUnHilite) … … 2800 2797 if (pci->attrFile & FILE_DIRECTORY) { 2801 2798 menuHwnd = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP); 2802 // WinEnableMenuItem(DirMenu,IDM_TREE,TRUE);2803 2799 } 2804 2800 else … … 3690 3686 if (len == 0 && key != '\\') { 3691 3687 // Let's see if user forgot leading backslash 3692 // key = SHORT1FROMMP(mp2);3693 3688 if (SearchContainer(hwnd, msg, mp1, MPFROM2SHORT('\\', 0))) { 3694 3689 if (SearchContainer(hwnd, msg, mp1, mp2)) … … 3804 3799 NULL, 3805 3800 CCS_AUTOPOSITION | CCS_MINIICONS | 3806 CCS_MINIRECORDCORE | ulCnrType, // | 3807 //WS_VISIBLE, 3801 CCS_MINIRECORDCORE | ulCnrType, 3808 3802 0, 3809 3803 0, -
trunk/dll/dirsize.c
r1871 r1878 173 173 strcpy(maskstr, pszFileName); 174 174 AddBackslashToPath(maskstr); 175 //if (maskstr[strlen(maskstr) - 1] != '\\')176 // strcat(maskstr, "\\");177 175 pEndMask = &maskstr[strlen(maskstr)]; // Point after last backslash 178 176 strcat(maskstr, "*"); … … 443 441 fprintf(fp, "%*.*s%s %lu %s%s\n", 444 442 indent * 2, indent * 2, " ", 445 pciParent->pszDisplayName, //443 pciParent->pszDisplayName, 446 444 pciParent->attrFile, 447 445 GetPString(IDS_FILETEXT), &"s"[pciParent->attrFile == 1]); … … 453 451 CMA_ITEMORDER)); 454 452 while (pci && (INT) pci != -1) { 455 DosSleep(0); //26 Aug 07 GKY 1453 DosSleep(0); 456 454 PrintToFile(hwndCnr, indent + 1, pci, fp); 457 455 pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORD, MPFROMP(pci), … … 935 933 strrev(szTemp); 936 934 AddBackslashToPath(szFileName); 937 //if (*szFileName && *szTemp != '\\')938 // strcat(szFileName, "\\");939 935 strcat(szFileName, szTemp); 940 936 pci = WinSendDlgItemMsg(hwnd, DSZ_CNR, CM_QUERYRECORD, … … 1122 1118 if (pState->hptr) 1123 1119 WinDestroyPointer(pState->hptr); 1124 DosSleep(16); //05 Aug 07 GKY 331120 DosSleep(16); 1125 1121 xfree(pState, pszSrcFile, __LINE__); // Let's hope no one is still looking 1126 1122 # ifdef FORTIFY -
trunk/dll/draglist.c
r1877 r1878 709 709 DrgDeleteStrHandle(pDItem->hstrTargetName); 710 710 free(pDItem); 711 // pDItem = NULL; // Why bother, we can count - fixme to be gone712 711 dcd->ulItemsToUnHilite = ulNumfiles + 1; 713 712 break; … … 724 723 pDItem->fsControl = DO_LINKABLE; 725 724 ulNumfiles++; 726 // ppDItem[ulNumfiles] = NULL; // Why bother - fixme to be gone727 725 } 728 726 } // for … … 738 736 pDInfo->usOperation = DO_LINK; 739 737 pDInfo->hwndSource = hwndObj ? hwndObj : hwnd; 740 // pDInfo->hwndSource = hwnd;741 738 for (ulSelect = 0; ulSelect < ulNumfiles; ulSelect++) { 742 739 if (!DrgSetDragitem(pDInfo, ppDItem[ulSelect], sizeof(DRAGITEM), ulSelect)) { -
trunk/vtree.def
r1807 r1878 5 5 # 14 Jun 07 SHL Convert to OpenWatcom 6 6 7 option description '@#The Netlabs FM/2 team:3.2 3.0#@##1## 2015-05-25 03:23:00 TRESBOPEEP::EN:US:0:U:@@FM/2 Tree View MiniApp Copyright (c) 1993, 1998 M. Kimes, Copyright (c) 2001, 2015 Steven Levine and Associates, Inc. All rights reserved'7 option description '@#The Netlabs FM/2 team:3.24.0#@##1## 2015-10-11 03:24:00 TRESBOPEEP::EN:US:0:U:@@FM/2 Tree View MiniApp Copyright (c) 1993, 1998 M. Kimes, Copyright (c) 2001, 2015 Steven Levine and Associates, Inc. All rights reserved' 8 8 9 9 option stack = 488416
Note:
See TracChangeset
for help on using the changeset viewer.