Changeset 1880
- Timestamp:
- Oct 12, 2015, 8:26:16 PM (10 years ago)
- Location:
- trunk/dll
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/errutil.c
r1840 r1880 89 89 90 90 static ULONG ul1stMSec; 91 // static ULONG ulLastMSec;92 91 93 92 ULONG msec = GetMSecTimer(); … … 95 94 96 95 if (!ul1stMSec) { 97 ul1stMSec = msec; 98 // ulLastMSec = msec; // Avoid big delta 1st time 96 ul1stMSec = msec; // Avoid big delta 1st time 99 97 } 100 98 101 99 delta = msec - ul1stMSec; 102 // ulLastMSec = msec;103 100 fprintf(stderr, "%03lu.%03lu ", delta / 1000, delta % 1000); 104 101 -
trunk/dll/excputil.c
r1841 r1880 26 26 #define INCL_DOSMISC // DosDumpProcess? 27 27 #define INCL_DOSERRORS // NO_ERROR 28 // #include <os2.h>29 28 30 29 #include "wrappers.h" // xmalloc xfree … … 65 64 "DosSetExceptionHandler"); 66 65 } 67 68 #if 0 // 11 Dec 08 SHL fixme tobe gone - debug69 {70 static UINT when;71 if (++when == 2)72 *(char*)0 = 0;73 }74 #endif75 66 76 67 (*ptd->pfnThread)(ptd->pvArgs); // Invoke thread -
trunk/dll/filldir.c
r1877 r1880 132 132 #include <ctype.h> 133 133 #include <limits.h> 134 // #include <process.h> // _beginthread135 134 136 135 #define INCL_DOS … … 919 918 (pffbFile->achName[1] == '.' && !pffbFile->achName[2])) || 920 919 (LoadedFirstChild && !stricmp(LoadedFirstChild, pffbFile->achName)))) { 921 // ulFindCnt--;// Got . or .. or file to be skipped920 // Got . or .. or file to be skipped 922 921 } 923 922 else … … 1063 1062 1064 1063 if (!pciFirst) { 1065 //ERRORID erridErrorCode = WinGetLastError(WinQueryAnchorBlock(hwndCnr));1066 //PmpfF(("Allocation failed %i", erridErrorCode));1067 1064 Win_Error(hwndCnr, HWND_DESKTOP, pszSrcFile, __LINE__, 1068 1065 GetPString(IDS_CMALLOCRECERRTEXT)); … … 1147 1144 } 1148 1145 } 1149 //SleepIfNeeded(&itdSleep, 1);1150 1146 } 1151 1147 priority_normal(); -
trunk/dll/flesh.c
r1879 r1880 53 53 #include <string.h> 54 54 #include <ctype.h> 55 //#include <malloc.h>56 55 57 56 #define INCL_DOS … … 100 99 BOOL fFilesInTree; 101 100 102 //BOOL Flesh(HWND hwndCnr, PCNRITEM pciParent);103 104 101 BOOL Stubby(HWND hwndCnr, PCNRITEM pciParent); 105 102 BOOL FleshEnv(HWND hwndCnr, PCNRITEM pciParent); 106 //VOID UnFlesh(HWND hwndCnr, PCNRITEM pciParent);107 103 108 104 /** … … 543 539 *p = 0;; 544 540 BldFullPathName(szBuffer, wildcard, pffb->achName); 545 pci->pszFileName = xstrdup(szBuffer, pszSrcFile, __LINE__); //NullStr; // 2015-08-19 SHL FIXME to doc why541 pci->pszFileName = xstrdup(szBuffer, pszSrcFile, __LINE__); 546 542 p = strrchr(pci->pszFileName, '\\'); 547 543 p++; 548 pci->pszDisplayName = p; //NullStr;544 pci->pszDisplayName = p; 549 545 pci->rc.pszIcon = pci->pszDisplayName; 550 546 if (fForceUpper) … … 746 742 } 747 743 c = strlen(((PFLESHWORKITEM)item)->pci->pszFileName); 748 // 2015-08-23 SHL FIXME to not trap for Gregg749 744 return strncmp(((PFLESHWORKITEM)item)->pci->pszFileName, (PCSZ)data, c) == 0; 750 745 } -
trunk/dll/fm2cmd.c
r1482 r1880 63 63 strcpy(temp, directory); 64 64 AddBackslashToPath(directory); 65 //if (directory[strlen(directory) - 1] != '\\')66 // strcat(temp, "\\");67 65 } 68 66 else { -
trunk/dll/fonts.c
r1673 r1880 28 28 #include "fm3dll.h" 29 29 #include "init.h" // Global semaphore 30 31 //static VOID SetFont(HWND hwnd);32 30 33 31 #pragma data_seg(DATA1) -
trunk/dll/getnames.c
r1673 r1880 185 185 if (*szBuffer) { 186 186 AddBackslashToPath(szBuffer); 187 //if (szBuffer[strlen(szBuffer) - 1] != '\\')188 // strcat(szBuffer, "\\");189 187 *szTemp = 0; 190 188 WinQueryDlgItemText(hwnd, 258, CCHMAXPATH, szTemp); -
trunk/dll/grep.c
r1780 r1880 323 323 WinCancelShutdown(ghmq, TRUE); 324 324 IncrThreadUsage(); 325 // DosSleep(100); //05 Aug 07 GKY 128 // 07 Feb 08 SHL326 325 // hwndStatus does not exist for applet 327 326 WinSetWindowText(hwndStatus ? hwndStatus : grep.hwndCurFile, … … 788 787 pci, grep->dir[x], grep->insertffb[x], FALSE, dcd); 789 788 pci = (PCNRITEM) pci->rc.preccNextRecord; 790 //SleepIfNeeded(pitdSleep, 1);791 789 if (pci == NULL && ulRecsToInsert) { 792 790 memset(&ri, 0, sizeof(RECORDINSERT)); … … 808 806 SleepIfNeeded(pitdSleep, 1); 809 807 }//for 810 // if (grep->toinsert == FilesToGet) // 07 Feb 08 SHL811 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL812 808 freegreplist(grep); 813 809 PostMsg(grep->hwndFiles, UM_RESCAN, MPVOID, MPVOID); … … 1056 1052 } // while 1057 1053 Free_FEAList(head); 1058 // DosSleep(1); // 07 Feb 08 SHL1059 1054 } 1060 1055 } … … 1094 1089 Fortify_LeaveScope(); 1095 1090 # endif 1096 // DosSleep(1); // 07 Feb 08 SHL1097 1091 } 1098 1092 } // if … … 1203 1197 else 1204 1198 break; 1205 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1206 1199 } 1207 1200 fclose(fp); 1208 // DosSleep(1); // 07 Feb 08 SHL1209 1201 } 1210 1202 free(buffer); … … 1373 1365 ULONG x; 1374 1366 ULONG y; 1375 // ULONG cntr = 1000; // 09 Feb 08 SHL 1376 1377 // if (grep->CRCdupes) // 09 Feb 08 SHL 1378 // cntr = 100; // 09 Feb 08 SHL 1367 1379 1368 x = 0; 1380 1369 for (i = grep->dupehead; i; i = i->next) … … 1386 1375 else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 1387 1376 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT)); 1388 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1389 1377 grep->dupenames = xmalloc(sizeof(DUPES *) * (x + 1), pszSrcFile, __LINE__); 1390 1378 if (!grep->nosizedupes) … … 1404 1392 InitITimer(pitdSleep, 0); // Reset rate estimator 1405 1393 SleepIfNeeded(pitdSleep, 1); 1406 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1407 1408 1394 qsort(grep->dupenames, 1409 1395 x, … … 1411 1397 grep->ignoreextdupes ? comparenamesqe : comparenamesq); 1412 1398 SleepIfNeeded(pitdSleep, 1); 1413 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1414 1399 if (!grep->nosizedupes) { 1415 1400 qsort(grep->dupesizes, x, sizeof(DUPES *), comparesizesq); 1416 1401 SleepIfNeeded(pitdSleep, 1); 1417 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1418 1402 } 1419 1403 … … 1597 1581 if (!(i->flags & GF_SKIPME)) { 1598 1582 if (IsITimerExpired(pitdReport)) { 1599 // if (!(y % cntr)) { } 1600 CHAR s[44]; 1583 CHAR s[44]; 1584 1601 1585 sprintf(s, GetPString(IDS_GREPDUPECHECKPROGTEXT), y, grep->numfiles); 1602 1586 if (!hwndStatus) … … 1604 1588 else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 1605 1589 WinSetWindowText(hwndStatus, s); 1606 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1607 1590 } 1608 1591 y++; … … 1667 1650 } 1668 1651 } 1669 // else if (!(x % 100)) // 07 Feb 08 SHL1670 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1671 1652 } 1672 1653 c = c->next; -
trunk/dll/grep2.c
r1707 r1880 335 335 fInitDone = TRUE; 336 336 } 337 else { //if (sLastMaskSelect == LIT_NONE) {337 else { 338 338 size = sizeof(sLastMaskSelect); 339 339 PrfQueryProfileData(fmprof, appname, (CHAR *) PSCZ_GREP_LASTMASK_SELECT, &sLastMaskSelect, &size); … … 445 445 fclose(fp); 446 446 } 447 // 25 Sep 09 SHL Reselect last last used item448 //if (sLastMaskSelect >= 0)449 // WinSendDlgItemMsg(hwnd, GREP_LISTBOX, LM_SELECTITEM,450 // MPFROMSHORT(sLastMaskSelect), MPFROMSHORT(TRUE));451 452 447 FillPathListBox(hwnd, 453 448 WinWindowFromID(hwnd, GREP_DRIVELIST), … … 1136 1131 break; 1137 1132 } 1138 DosSleep(100); //05 Aug 07 GKY 1281133 DosSleep(100); 1139 1134 free(p); 1140 1135 # ifdef FORTIFY -
trunk/dll/inis.c
r1673 r1880 47 47 #include <ctype.h> 48 48 #include <share.h> 49 // #include <process.h> // _beginthread50 49 51 50 #define INCL_DOS … … 2262 2261 WinSetDlgItemText(hwnd, INI_NUMDATA, "0"); 2263 2262 WinSendDlgItemMsg(hwnd, INI_DATALIST, LM_DELETEALL, MPVOID, MPVOID); 2264 // inidata = WinQueryWindowPtr(hwnd, QWL_USER); // 09 Jan 08 SHL2265 2263 } 2266 2264 return 0; … … 2547 2545 } 2548 2546 else 2549 DosSleep(100); //05 Aug 07 GKY 2502547 DosSleep(100); 2550 2548 } 2551 2549 } -
trunk/dll/instant.c
r1628 r1880 137 137 batches++); 138 138 fp = xfopen(s, modew, pszSrcFile, __LINE__, FALSE); 139 //if (!fp)140 // Runtime_Error(pszSrcFile, __LINE__, "fopen");141 139 if (fp) { 142 140 if (!strncmp(bat, "/*", 2)) { -
trunk/dll/key.c
r1498 r1880 127 127 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 128 128 MPFROMLONG(sk1), MPVOID); 129 DosSleep(16); //05 Aug 07 GKY 33129 DosSleep(16); 130 130 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 131 131 MPFROMLONG(sk2), MPVOID); 132 DosSleep(16); //05 Aug 07 GKY 33132 DosSleep(16); 133 133 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 134 134 MPFROMLONG(sk3), MPVOID); 135 DosSleep(16); //05 Aug 07 GKY 33135 DosSleep(16); 136 136 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 137 137 MPFROMLONG(sk4), MPVOID); 138 DosSleep(16); //05 Aug 07 GKY 33138 DosSleep(16); 139 139 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 140 140 MPFROMLONG(sk5), MPVOID); 141 DosSleep(16); //05 Aug 07 GKY 33141 DosSleep(16); 142 142 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 143 143 MPFROMLONG(sk6), MPVOID); 144 DosSleep(16); //05 Aug 07 GKY 33144 DosSleep(16); 145 145 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 146 146 MPFROMLONG(sk7), MPVOID); 147 DosSleep(16); //05 Aug 07 GKY 33147 DosSleep(16); 148 148 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 149 149 MPFROMLONG(sk8), MPVOID); 150 DosSleep(16); //05 Aug 07 GKY 33150 DosSleep(16); 151 151 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 152 152 MPFROMLONG(sk9), MPVOID); 153 DosSleep(100); //05 Aug 07 GKY 257153 DosSleep(100); 154 154 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 155 155 MPFROMLONG(sk8), MPVOID); 156 DosSleep(16); //05 Aug 07 GKY 33156 DosSleep(16); 157 157 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 158 158 MPFROMLONG(sk7), MPVOID); 159 DosSleep(16); //05 Aug 07 GKY 33159 DosSleep(16); 160 160 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 161 161 MPFROMLONG(sk6), MPVOID); 162 DosSleep(16); //05 Aug 07 GKY 33162 DosSleep(16); 163 163 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 164 164 MPFROMLONG(sk5), MPVOID); 165 DosSleep(16); //05 Aug 07 GKY 33165 DosSleep(16); 166 166 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 167 167 MPFROMLONG(sk4), MPVOID); 168 DosSleep(16); //05 Aug 07 GKY 33168 DosSleep(16); 169 169 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 170 170 MPFROMLONG(sk3), MPVOID); 171 DosSleep(16); //05 Aug 07 GKY 33171 DosSleep(16); 172 172 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 173 173 MPFROMLONG(sk2), MPVOID); 174 DosSleep(16); //05 Aug 07 GKY 33174 DosSleep(16); 175 175 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 176 176 MPFROMLONG(sk1), MPVOID); 177 DosSleep(16); //05 Aug 07 GKY 33177 DosSleep(16); 178 178 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, 179 179 MPFROMLONG(sk0), MPVOID); 180 DosSleep(16); //05 Aug 07 GKY 33180 DosSleep(16); 181 181 WinShowWindow(WinWindowFromID(hwnd, ABT_ICON), FALSE); 182 182 WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE, … … 213 213 case UM_SETDIR: 214 214 WinSetFocus(HWND_DESKTOP, HWND_DESKTOP); 215 DosSleep(250); //05 Aug 07 GKY 2500215 DosSleep(250); 216 216 return 0; 217 217 -
trunk/dll/killproc.c
r1859 r1880 43 43 #include <string.h> 44 44 #include <ctype.h> 45 // #include <process.h>46 45 #include <limits.h> 47 46 … … 472 471 } 473 472 else 474 DosSleep(100); // 05 Aug 07 GKY 250473 DosSleep(100); 475 474 } 476 475 else if (fUseQSysState) … … 484 483 } 485 484 else 486 DosSleep(100); //05 Aug 07 GKY 250485 DosSleep(100); 487 486 else { 488 487 if (xbeginthread(FillKillListThread, -
trunk/dll/mainwnd.c
r1877 r1880 5611 5611 break; 5612 5612 } 5613 x = SHORT1FROMMP(mp1); // - IDM_COMMANDSTART;5613 x = SHORT1FROMMP(mp1); 5614 5614 if (x >= 0) { 5615 //x++;5616 5615 RunCommand(hwndCnr, x); 5617 5616 if (fUnHilite) { … … 5704 5703 } 5705 5704 else 5706 DosSleep(32); //05 Aug 07 GKY 645705 DosSleep(32); 5707 5706 5708 5707 hwndFrame = WinQueryWindow(hwnd, QW_PARENT); … … 5835 5834 (CHAR *) WC_COMBOBOX, 5836 5835 (PSZ) NULL, 5837 //WS_VISIBLE |5838 5836 CBS_DROPDOWN, 5839 5837 (swp.x + … … 6596 6594 UM_RESTORE, 6597 6595 MPVOID, 6598 MPFROMLONG( 1));// Autotile6596 MPFROMLONG(RESTORE_STATE_TILE_CHILDREN)); // Autotile 6599 6597 } 6600 6598 } … … 6625 6623 WinPostMsg(hwnd, 6626 6624 WM_COMMAND, 6627 MPFROM2SHORT(atol(p), 0), //fixme GKY this traps in atol the {} probably don't exist 6628 //IDM_COMMANDSTART + sSelect, 0), 6625 MPFROM2SHORT(atol(p), 0), 6629 6626 MPVOID); 6630 6627 } -
trunk/dll/mainwnd2.c
r1877 r1880 49 49 #include <string.h> 50 50 #include <share.h> 51 // #include <process.h> // _beginthread52 51 53 52 #define INCL_DOS … … 463 462 case IDM_CONFIRMDELETE: // 2014-05-17 SHL 464 463 case IDM_TOGGLEDRAGDIALOG: // 2014-05-15 SHL 465 // case IDM_SYSINFO:466 464 case IDM_HIDENOTEWND: 467 465 case IDM_SHOWNOTEWND: … … 724 722 break; 725 723 } 726 x = SHORT1FROMMP(mp1); // - IDM_COMMANDSTART;724 x = SHORT1FROMMP(mp1); 727 725 if (x >= 0) { 728 //x++;729 726 RunCommand(hwndCnr, x); 730 727 if (fUnHilite) { … … 811 808 } 812 809 else 813 DosSleep(32); //05 Aug 07 GKY 64810 DosSleep(32); 814 811 815 812 pd = xmallocz(sizeof(PERSON1DATA), pszSrcFile, __LINE__); -
trunk/dll/mkdir.c
r1877 r1880 186 186 MakeValidDir(szBuff); 187 187 AddBackslashToPath(szBuff); 188 //if (*szBuff && szBuff[strlen(szBuff) - 1] != '\\')189 // strcat(szBuff, "\\");190 188 sip.prompt = GetPString(IDS_MKDIRPROMPTTEXT); 191 189 sip.inputlen = CCHMAXPATH - 1; -
trunk/dll/mle.c
r1673 r1880 34 34 #include <ctype.h> 35 35 #include <share.h> 36 // #include <process.h> // _beginthread37 36 38 37 #define INCL_DOS … … 560 559 first = FALSE; 561 560 } 562 // fprintf(stderr,"%d bytes of %d imported\n",howmuch,numimport);563 561 if (howmuch < 1) { 564 562 numimport = 0; … … 568 566 numimport -= howmuch; 569 567 memmove(hexbuff, hexbuff + howmuch, numimport); 570 DosSleep(0); //26 Aug 07 GKY 1568 DosSleep(0); 571 569 if (!WinIsWindow(hab, h) || (vw && vw->killme)) 572 570 break; … … 705 703 first = FALSE; 706 704 } 707 // fprintf(stderr,"%d bytes of %d imported\n",howmuch,numread);708 705 if (howmuch < 1) { 709 706 numread = 0; … … 723 720 numread = tempnum; 724 721 } 725 DosSleep(0); //26 Aug 07 GKY 1722 DosSleep(0); 726 723 } 727 724 else … … 734 731 WinSetWindowText(grandpa, s); 735 732 } 736 DosSleep(0); //26 Aug 07 GKY 1733 DosSleep(0); 737 734 } 738 735 DosFreeMem(buffer); … … 812 809 Fortify_LeaveScope(); 813 810 # endif 814 // _endthread(); // 10 Dec 08 SHL815 811 } 816 812 -
trunk/dll/newview.c
r1802 r1880 50 50 #include <stdlib.h> 51 51 #include <string.h> 52 // #include <process.h> // 10 Dec 08 SHL53 52 #include <limits.h> 54 53 #include <share.h> … … 253 252 CHAR *pszTestStr = pszSrc; 254 253 CHAR szMailTo[SEARCHSTRINGLEN] = "mailto:"; 255 //CHAR szMailEnd[] = ">";256 254 257 255 if (!strnstr(pszTestStr, pszFindChar, StrLens)) … … 265 263 strip_trail_char(">", pszSrc); 266 264 strcat(szMailTo, pszSrc); 267 // strcat(szMailTo, szMailEnd);268 265 strcpy(pszSrc, szMailTo); 269 266 return pszSrc; … … 292 289 strip_trail_char(",.;:'>", pszSrc); 293 290 strcat(szMailTo, pszSrc); 294 //strcat(szMailTo, szMailEnd);295 291 strcpy(pszSrc, szMailTo); 296 292 return pszSrc; … … 1161 1157 NEWVIEW_STATUS1), 1162 1158 (CHAR *) GetPString(IDS_NOMATCHINGTEXT)); 1163 DosSleep(150); //05 Aug 07 GKY 15001159 DosSleep(150); 1164 1160 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 1165 1161 PostMsg(hwnd, UM_SETUP4, MPVOID, MPVOID); … … 1273 1269 NEWVIEW_STATUS1), 1274 1270 (CHAR *) GetPString(IDS_NVNOLINESSELTEXT)); 1275 DosSleep(150); //05 Aug 07 GKY 15001271 DosSleep(150); 1276 1272 } 1277 1273 } … … 2035 2031 { 2036 2032 WinSendMsg(hwnd, UM_SETUP5, MPVOID, MPVOID); 2037 DosSleep(16); //05 Aug 07 GKY 322033 DosSleep(16); 2038 2034 return (MRESULT) 1; 2039 2035 } … … 3949 3945 WinInvalidateRect(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), 3950 3946 NEWVIEW_DRAG), NULL, FALSE); 3951 //WinInvalidateRect(ad->hhscroll, NULL, FALSE);3952 3947 } 3953 3948 DosReleaseMutexSem(ad->ScanSem); … … 3988 3983 WinInvalidateRect(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), 3989 3984 NEWVIEW_DRAG), NULL, FALSE); 3990 //WinInvalidateRect(ad->hhscroll, NULL, FALSE);3991 3985 } 3992 3986 DosReleaseMutexSem(ad->ScanSem); … … 4073 4067 } 4074 4068 if (ad->busy) 4075 DosSleep(100); //05 Aug 07 GKY 1284069 DosSleep(100); 4076 4070 if (ad->hps) { 4077 4071 GpiDeleteSetId(ad->hps, NEWVIEWMLE_FONT_LCID); … … 4227 4221 hwndFrame = (HWND) 0; 4228 4222 else { 4229 //DosSleep(32);4230 4223 if (!(FrameFlags & FCF_TASKLIST) && !(flags & 2)) { 4231 4224 SWP swp; -
trunk/dll/notebook.c
r1877 r1880 1954 1954 if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) { 1955 1955 PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(RESTORE_STATE_CLOSE_CHILDREN)); 1956 // PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);1957 1956 PostMsg(MainObjectHwnd, UM_RESTORE, (PSZ) PCSZ_FM2TEMPTEXT, MPFROMLONG(RESTORE_STATE_RESTORE)); 1958 1957 } … … 3836 3835 else { 3837 3836 mp2 = WinSendMsg(mi.hwndSubMenu, MM_QUERYDEFAULTITEMID, MPVOID, MPVOID); 3838 //if (!mp2) // causes spurious error message on new installs GKY 1-9-093839 // mp2 = MPFROMLONG(IDM_QUICKSETTINGS);3840 //Runtime_Error(pszSrcFile, __LINE__, "MM_QUERYDEFAULTITEMID");3841 3837 } 3842 3838 } … … 4027 4023 break; 4028 4024 case WM_CLOSE: 4029 //SaveLastPageIndex(hwnd);4030 4025 break; 4031 4026 } -
trunk/dll/objcnr.c
r1871 r1880 32 32 #include <string.h> 33 33 #include <ctype.h> 34 // #include <process.h> // _beginthread35 34 36 35 #define INCL_DOS … … 104 103 strcpy(maskstr, filename); 105 104 AddBackslashToPath(maskstr); 106 //if (maskstr[strlen(maskstr) - 1] != '\\')107 // strcat(maskstr, "\\");108 105 endpath = &maskstr[strlen(maskstr)]; 109 106 strcat(maskstr, "*"); … … 324 321 325 322 case UM_SETUP: 326 // WinEnableWindowUpdate(WinWindowFromID(hwnd,OBJCNR_CNR),FALSE);327 323 { 328 324 CNRINFO cnri; … … 347 343 case UM_CONTAINER_FILLED: 348 344 WinSetDlgItemText(hwnd, OBJCNR_NOTE, NullStr); 349 // WinEnableWindowUpdate(WinWindowFromID(hwnd,OBJCNR_CNR),TRUE);350 345 WinSendDlgItemMsg(hwnd, OBJCNR_CNR, CM_INVALIDATERECORD, MPVOID, 351 346 MPFROM2SHORT(0, CMA_ERASE | CMA_INVALIDATE)); -
trunk/dll/pathutil.c
r1782 r1880 69 69 return pszPathName; 70 70 } 71 72 // #pragma data_seg(DATA1)73 71 74 72 /** -
trunk/dll/rename.c
r1682 r1880 93 93 } 94 94 if (mv->compare) { 95 //WinShowWindow(WinWindowFromID(hwnd, REN_DONTASK), FALSE);96 95 WinShowWindow(WinWindowFromID(hwnd, REN_OVEROLD), FALSE); 97 96 WinShowWindow(WinWindowFromID(hwnd, REN_OVERNEW), FALSE); -
trunk/dll/seeall.c
r1877 r1880 72 72 #include <string.h> 73 73 #include <ctype.h> 74 // #include <process.h>75 74 76 75 #define INCL_DOS … … 719 718 goto Abort; 720 719 } 721 DosSleep(0); //26 Aug 07 GKY 1720 DosSleep(0); 722 721 if (mv.skip || !*mv.target) 723 722 break; … … 1194 1193 if (toupper(*path) < 'C' && !fAlertBeepOff) 1195 1194 DosBeep(1000, 25); 1196 DosSleep(16); // 05 Aug 07 GKY 331195 DosSleep(16); 1197 1196 break; 1198 1197 … … 1395 1394 TileChildren(hwndMain, TRUE); 1396 1395 WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE); 1397 DosSleep(100); //05 Aug 07 GKY 2501396 DosSleep(100); 1398 1397 } 1399 1398 } 1400 1399 else { 1401 1400 StartCollector(HWND_DESKTOP, 4); 1402 DosSleep(100); //05 Aug 07 GKY 2501401 DosSleep(100); 1403 1402 } 1404 1403 } … … 1748 1747 for (x = 0; x < ad->afheadcnt; x++) 1749 1748 ad->afhead[x].flags &= (~(AF_DUPE | AF_SELECTED)); 1750 DosSleep(0); //26 Aug 07 GKY 11749 DosSleep(0); 1751 1750 for (x = 0; x < ad->afheadcnt && !ad->stopflag; x++) { 1752 1751 if (!(ad->afhead[x].flags & (AF_DUPE | AF_FILTERED))) { … … 2176 2175 break; 2177 2176 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 2178 DosSleep(0); //26 Aug 07 GKY 12177 DosSleep(0); 2179 2178 } 2180 2179 } // for … … 2736 2735 } 2737 2736 else { 2738 DosSleep(50); //05 Aug 07 GKY 1002737 DosSleep(50); 2739 2738 PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID); 2740 2739 PostMsg(hwnd, UM_SETUP2, MPVOID, MPVOID); … … 4205 4204 else { 4206 4205 DosReleaseMutexSem(pAD->hmtxScan); 4207 DosSleep(50); //05 Aug 07 GKY 1004206 DosSleep(50); 4208 4207 WinInvalidateRect(hwnd, NULL, FALSE); 4209 4208 PostMsg(hwnd, UM_SETUP2, MPVOID, MPVOID); … … 4388 4387 } 4389 4388 else if (SHORT1FROMMP(mp1) == IDM_COLLECTOR) { 4390 DosSleep(50); //05 Aug 07 GKY 1004389 DosSleep(50); 4391 4390 if (!PostMsg(hwnd, msg, mp1, mp2)) 4392 4391 WinSendMsg(hwnd, msg, mp1, mp2); -
trunk/dll/strutil.c
r1877 r1880 96 96 #pragma aux SMPSafeInc = "lock inc cBusy" modify exact []; 97 97 #pragma aux SMPSafeDec = "lock dec cBusy" modify exact []; 98 // SMPSafeInc();99 98 for (c = 0; ; c++) { 100 99 if (SMPSafeInc(), cBusy == 1) … … 114 113 extern PTIB2 GetPTIB2(void); 115 114 #pragma aux GetPTIB2 = "mov eax,fs:[12]" value [eax]; 116 // PIB *ppib;117 // TIB *ptib;118 115 TIB2 *ptib2 = GetPTIB2(); 119 // APIRET apiret = DosGetInfoBlocks(&ptib, &ppib);120 116 ulDbgId = id; 121 // ulDbgTid = apiret == 0 ? ptib->tib_ptib2->tib2_ultid : 0;122 117 ulDbgTid = ptib2->tib2_ultid; 123 118 } -
trunk/dll/systemf.c
r1877 r1880 1242 1242 for (ctr = 0;; ctr++) 1243 1243 { 1244 DosSleep(50); //05 Aug 07 GKY 2001244 DosSleep(50); 1245 1245 if (DosSetSession(ulSessID, &sd)) // Check if session gone (i.e. finished) 1246 1246 break; … … 1258 1258 DCWW_NOWAIT, &bPriority, hTermQSem); 1259 1259 if (rc == ERROR_QUE_EMPTY) { 1260 DosSleep(50); //05 Aug 07 GKY 1001260 DosSleep(50); 1261 1261 continue; 1262 1262 } … … 1273 1273 // Oh heck 1274 1274 Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosReadQueue"); 1275 DosSleep(100); //05 Aug 07 GKY 5001275 DosSleep(100); 1276 1276 continue; 1277 1277 } 1278 1279 // printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n",1280 // __FILE__, __LINE__,ptib->tib_ordinal,pTermInfo->usSessID,pTermInfo->usRC,rq.pid, rq.ulData); fflush(stdout);1281 1278 1282 1279 if (pTermInfo->usSessID == ulSessID) … … 1286 1283 { 1287 1284 static ULONG ulLastSessID; 1288 // printf("%s %d requeue thread 0x%x our sess %u term sess %u term rc %u\n",1289 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,pTermInfo->usSessID,pTermInfo->usRC); fflush(stdout);1290 // fixme to be gone when no longer needed for debug?1291 1285 if (ulLastSessID) { 1292 DosSleep(100); //05 Aug 07 GKY 5001286 DosSleep(100); 1293 1287 ulLastSessID = pTermInfo->usSessID; 1294 1288 } … … 1297 1291 if (rc) 1298 1292 Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosWriteQueue"); 1299 DosSleep(50); //05 Aug 07 GKY 100// Let other thread see queue entry1293 DosSleep(50); // Let other thread see queue entry 1300 1294 } 1301 1295 } // for 1302 1296 1303 1297 ret = pTermInfo->usRC == 0; // Set 1 if rc 0 else 0 1304 // printf("%s %d thread 0x%x term for sess %u\n",1305 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID);fflush(stdout);1306 1298 DosFreeMem(pTermInfo); 1307 1299 } -
trunk/dll/timer.c
r1335 r1880 14 14 15 15 ***********************************************************************/ 16 17 // #include <process.h> // _beginthread18 16 19 17 #define INCL_DOS -
trunk/dll/treecnr.c
r1879 r1880 130 130 #include <string.h> 131 131 #include <ctype.h> 132 // #include <process.h> // _beginthread133 132 134 133 #define INCL_DOS … … 867 866 dcd->hwndObject = hwnd; 868 867 if (ParentIsDesktop(hwnd, dcd->hwndParent)) 869 DosSleep(100); //05 Aug 07 GKY 250868 DosSleep(100); 870 869 } 871 870 return 0; … … 1266 1265 else { 1267 1266 menuHwnd = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP); 1268 // WinEnableMenuItem(DirMenu,1269 // IDM_TREE,1270 // FALSE);1271 1267 } 1272 1268 if (!(pci->attrFile & FILE_DIRECTORY)) … … 2778 2774 } 2779 2775 WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE); 2780 DosSleep(100); //05 Aug 07 GKY 2502776 DosSleep(100); 2781 2777 } 2782 2778 else … … 2800 2796 2801 2797 case IDM_COLLECTOR: 2802 DosSleep(32); //05 Aug 07 GKY 642798 DosSleep(32); 2803 2799 { 2804 2800 CHAR **list; … … 3107 3103 if (!cmdloaded) 3108 3104 load_commands(); 3109 x = SHORT1FROMMP(mp1); // - IDM_COMMANDSTART;3105 x = SHORT1FROMMP(mp1); 3110 3106 if (x >= 0) { 3111 //x++;3112 3107 RunCommand(hwnd, x); 3113 3108 if (fUnHilite) … … 3151 3146 fOkayMinimize = TRUE; 3152 3147 if (dcd->hwndObject) { 3153 DosSleep(50); //05 Aug 07 GKY 1003148 DosSleep(50); 3154 3149 fOkayMinimize = FALSE; 3155 3150 WinSetWindowPos(((hwndMain) ? WinQueryWindow(hwndMain, QW_PARENT) : -
trunk/dll/undel.c
r1846 r1880 28 28 #include <string.h> 29 29 #include <ctype.h> 30 // #include <process.h> // _beginthread31 30 32 31 #define INCL_DOS … … 216 215 strcpy(s, (CHAR *)mp2); 217 216 AddBackslashToPath(s); 218 //if (s[strlen(s) - 1] != '\\')219 // strcat(s, "\\");220 217 strcat(s, "*"); 221 218 WinSetDlgItemText(hwnd, UNDEL_ENTRY, s); … … 262 259 } 263 260 else 264 DosSleep(100); //05 Aug 07 GKY 500261 DosSleep(100); 265 262 } 266 263 refresh = FALSE; -
trunk/dll/walkem.c
r1877 r1880 1021 1021 APIRET rc; 1022 1022 1023 // *szBuffer = 0;1024 // WinQueryDlgItemText(hwnd,WALK_RECENT,CCHMAXPATH,szBuffer);1025 1023 if (!*szBuffer) 1026 1024 break; … … 1155 1153 strcpy(szBuff, wa->szCurrentPath); 1156 1154 AddBackslashToPath(szBuff); 1157 //if (szBuff[strlen(szBuff) - 1] != '\\')1158 // strcat(szBuff, "\\");1159 1155 strcat(szBuff, szBuffer); 1160 1156 MakeFullName(szBuff); … … 1544 1540 strcpy(szBuff, wa->szCurrentPath1); 1545 1541 AddBackslashToPath(szBuff); 1546 //if (szBuff[strlen(szBuff) - 1] != '\\')1547 // strcat(szBuff, "\\");1548 1542 strcat(szBuff, szBuffer); 1549 1543 MakeFullName(szBuff); … … 1610 1604 strcpy(szBuff, wa->szCurrentPath2); 1611 1605 AddBackslashToPath(szBuff); 1612 //if (szBuff[strlen(szBuff) - 1] != '\\')1613 // strcat(szBuff, "\\");1614 1606 strcat(szBuff, szBuffer); 1615 1607 MakeFullName(szBuff); -
trunk/dll/worker.c
r1877 r1880 83 83 #define INCL_DOS 84 84 #define INCL_DOSERRORS 85 // #define INCL_WINPROGRAMLIST // 13 Jul 09 SHL dropped86 // #define INCL_WINHELP // 13 Jul 09 SHL dropped87 85 #define INCL_LONGLONG 88 86 #define INCL_WINPOINTERS // WinSetFileIcon 89 // #define INCL_WINWORKPLACE // 13 Jul 09 SHL dropped90 87 #define INCL_WINSHELLDATA // PrfQueryProfileData 91 88 … … 467 464 wk->li->list[x]); 468 465 AddNote(message); 469 if (//fSyncUpdates || 470 AddToList(outname, &files, &cFilesModified, &cItemsAllocated)) 466 if (AddToList(outname, &files, &cFilesModified, &cItemsAllocated)) 471 467 Broadcast(hab2, 472 468 wk->hwndCnr, … … 572 568 goto Abort; 573 569 if (ret == 1) { 574 if (//fSyncUpdates || 575 AddToList(wk->li->list[x], 570 if (AddToList(wk->li->list[x], 576 571 &files, &cFilesModified, &cItemsAllocated)) 577 572 Broadcast(hab2, … … 1094 1089 if (toupper(*wk->li->targetpath) < 'C' && !fAlertBeepOff) 1095 1090 DosBeep(1000, 25); // Wake up user 1096 DosSleep(16); //05 Aug 07 GKY 331091 DosSleep(16); 1097 1092 if (wk->li->type == IDM_WPSMOVE || wk->li->type == IDM_WPSCOPY) 1098 DosSleep(48); //05 Aug 07 GKY 961093 DosSleep(48); 1099 1094 break; 1100 1095 default: … … 1298 1293 strcpy(szBuffer, wk->li->targetpath); 1299 1294 AddBackslashToPath(wk->li->targetpath); 1300 //if (wk->li->targetpath[strlen(wk->li->targetpath) - 1] != '\\')1301 // strcat(szBuffer, "\\");1302 1295 p = szBuffer + strlen(szBuffer); 1303 1296 for (x = 0; wk->li->list[x]; x++) { … … 1836 1829 AddNote(prompt); 1837 1830 } 1838 if (//fSyncUpdates || 1839 AddToList(wk->li->list[x], &files, &numfiles, &numalloc)) { 1831 if (AddToList(wk->li->list[x], &files, &numfiles, &numalloc)) { 1840 1832 Broadcast(hab2, 1841 1833 wk->hwndCnr, -
trunk/dll/wrappers.c
r1877 r1880 305 305 if (rc) 306 306 Runtime_Error(pszSrcFile, uiLineNumber, GetPString(IDS_OUTOFMEMORY)); 307 //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p", *ppb);308 307 return rc; 309 308 }
Note:
See TracChangeset
for help on using the changeset viewer.