Changeset 1877
- Timestamp:
- Oct 11, 2015, 11:43:27 PM (10 years ago)
- Location:
- trunk/dll
- Files:
-
- 28 edited
-
arccnrs.c (modified) (4 diffs)
-
assoc.c (modified) (1 diff)
-
command.c (modified) (1 diff)
-
comp.c (modified) (5 diffs)
-
copyf.c (modified) (3 diffs)
-
defview.c (modified) (1 diff)
-
dircnrs.c (modified) (19 diffs)
-
draglist.c (modified) (2 diffs)
-
eas.c (modified) (3 diffs)
-
filldir.c (modified) (14 diffs)
-
findrec.c (modified) (2 diffs)
-
flesh.c (modified) (20 diffs)
-
flesh.h (modified) (1 diff)
-
init.c (modified) (6 diffs)
-
mainwnd.c (modified) (9 diffs)
-
mainwnd2.c (modified) (1 diff)
-
mkdir.c (modified) (1 diff)
-
notebook.c (modified) (1 diff)
-
notify.c (modified) (1 diff)
-
seeall.c (modified) (12 diffs)
-
strutil.c (modified) (6 diffs)
-
systemf.c (modified) (2 diffs)
-
treecnr.c (modified) (22 diffs)
-
valid.c (modified) (1 diff)
-
viewinf.c (modified) (1 diff)
-
walkem.c (modified) (2 diffs)
-
worker.c (modified) (1 diff)
-
wrappers.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1851 r1877 502 502 static VOID FreeArcItemData(PARCITEM pai) 503 503 { 504 // DbgMsg(pszSrcFile, __LINE__, "FreeArcItemData %p", pai);505 504 PSZ psz; 506 505 … … 547 546 } 548 547 } 549 550 // DbgMsg(pszSrcFile, __LINE__, "RemoveArcItems %p %u %s", pai, usCnt, pai->pszFileName);551 552 548 if (remaining != - 1) { 553 remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&paiFirst), MPFROM2SHORT(usCnt, usFlags)); 549 remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&paiFirst), 550 MPFROM2SHORT(usCnt, usFlags)); 554 551 if (remaining == -1) { 555 Win_Error(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__,"CM_REMOVERECORD hwnd %x pai %p cnt %u", 552 Win_Error(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__, 553 "CM_REMOVERECORD hwnd %x pai %p cnt %u", 556 554 hwnd, paiFirst, usCnt); 557 555 } … … 703 701 else { 704 702 rc = 0; 705 //DbgMsg(pszSrcFile, __LINE__, "Number of tries %i", cnter);706 703 rc = SearchPathForFile(PCSZ_PATH, s, NULL); 707 704 if (!rc) { … … 3032 3029 stricmp(lastextractpath, dcd->directory)) { 3033 3030 strcpy(lastextractpath, dcd->directory); 3034 //DbgMsg(pszSrcFile, __LINE__, "Extract dir %s", dcd->directory);3035 3031 SetDir(dcd->hwndParent, hwnd, dcd->directory, 1); 3036 3032 } -
trunk/dll/assoc.c
r1616 r1877 528 528 dieafter = TRUE; 529 529 flags &= (~DIEAFTER); 530 //DbgMsg(pszSrcFile, __LINE__, "env %s", info->env);531 530 rc = ExecOnList(hwnd, 532 531 info->pszCmdLine, -
trunk/dll/command.c
r1780 r1877 839 839 else 840 840 temp->HotKeyID = 0; 841 //DbgMsg(pszSrcFile, __LINE__, "info %i", temp->HotKeyID);842 841 return TRUE; 843 842 } -
trunk/dll/comp.c
r1836 r1877 249 249 if (fp) { 250 250 fprintf(fp, "\"%s\"\n", sf->dirname); 251 //DbgMsg(pszSrcFile, __LINE__, "recurse %i", sf->recurse);252 251 SnapShot(sf->dirname, fp, sf->recurse); 253 252 fclose(fp); … … 1663 1662 FillDirList(cmp->leftdir, lenl, cmp->includesubdirs, 1664 1663 &filesl, &cmp->cmp->totalleft, &numallocl); 1665 1666 1664 if (filesl) 1667 1665 qsort(filesl, cmp->cmp->totalleft, sizeof(CHAR *), CompNames); 1668 1669 1666 // Build list of all files in right directory 1670 //DbgMsg(pszSrcFile, __LINE__, "list file %s", cmp->rightlist);1671 1667 if (!*cmp->rightlist) { 1672 1668 if (fForceLower) … … 1730 1726 if (cmp->rightdir[strlen(cmp->rightdir) - 1] != '\\') 1731 1727 lenr++; 1732 //DbgMsg(pszSrcFile, __LINE__, "end of file %i", feof(fp));1733 1728 while (!feof(fp)) { 1734 1729 if (!xfgets_bstripcr … … 1751 1746 if (p) { 1752 1747 p++; 1753 //DbgMsg(pszSrcFile, __LINE__, "DS %ul comma %ul", strchr(p, '/') ? strchr(p, '/') : strchr(p, DateSeparator[0]), strchr(p, ','));1754 1748 if (((strchr(p, '/') ? strchr(p, '/') : strchr(p, DateSeparator[0])) - strchr(p, ',')) > 5) { 1755 1749 CHAR szTemp[30]; … … 3226 3220 strcpy(sf->dirname, cmp->rightdir); 3227 3221 sf->recurse = WinQueryButtonCheckstate(hwnd, COMP_INCLUDESUBDIRS); 3228 //DbgMsg(pszSrcFile, __LINE__, "recurse %i %i", sf->recurse, cmp->includesubdirs); 3222 3229 3223 if (xbeginthread(StartSnapThread, 3230 3224 65536, -
trunk/dll/copyf.c
r1849 r1877 696 696 FILESTATUS3 fsi; 697 697 698 //DbgMsg(pszSrcFile, __LINE__, "error %i ", error);699 698 DosError(FERR_DISABLEHARDERR); 700 699 rc = DosQueryPathInfo(filename, FIL_STANDARD, &fsi, sizeof(fsi)); … … 707 706 GetPString(IDS_READONLYFILEWARNING), 708 707 filename); 709 //DbgMsg(pszSrcFile, __LINE__, "retrn %x ", retrn);710 708 ret = retrn; 711 709 if (retrn == SM2_YES || retrn == SM2_DONTASK) … … 739 737 ret = SM2_NO; 740 738 } 741 //DbgMsg(pszSrcFile, __LINE__, "retrn %x ", ret);742 739 return ret; 743 740 } -
trunk/dll/defview.c
r1783 r1877 160 160 161 161 // if identified and not FOURCC_DOS MPEGs are misidentified as DOS 162 //DbgMsg(pszSrcFile, __LINE__, "FOUCC %x %s %i", mmFormatInfo.fccIOProc,163 // mmFormatInfo.szDefaultFormatExt, mmFormatInfo.ulMediaType);164 162 if (!rc && (mmFormatInfo.fccIOProc != FOURCC_DOS || 165 163 !stricmp(p, PCSZ_DOTMPG) || !stricmp(p, PCSZ_DOTMPEG))) { -
trunk/dll/dircnrs.c
r1874 r1877 915 915 if (hwndTree) { 916 916 // 2015-08-12 SHL Optimze to update drive tree for only last saved state 917 918 #if 0 // 2015-08-13 SHL919 if (fSwitchTreeOnDirChg)920 DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug921 #endif922 917 if (fSwitchTreeOnDirChg) { 923 918 // Keep drive tree in sync with directory container … … 927 922 if (hwndMain) { 928 923 if (TopWindow(hwndMain, (HWND)0) == dcd->hwndFrame) { 929 //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug930 924 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 931 925 free(pszTempDir); … … 933 927 } 934 928 else { 935 //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug936 929 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 937 930 free(pszTempDir); … … 1445 1438 if (fSwitchTreeOnFocus && hwndTree && dcd && *dcd->directory) { 1446 1439 PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__); 1447 //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug1448 1440 if (pszTempDir) { 1449 //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS PostMsg(UM_SHOWME, %s)", pszTempDir); // 2015-08-04 SHL FIXME debug1450 1441 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 1451 1442 free(pszTempDir); // Failed … … 1466 1457 strcpy(dcd->previous, dcd->directory); 1467 1458 strcpy(dcd->directory, fullname); 1468 // DosEnterCritSec(); // GKY 11-27-081469 1459 dcd->stopflag++; 1470 // DosExitCritSec();1471 // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");1472 1460 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) { 1473 1461 strcpy(dcd->directory, dcd->previous); 1474 // DosEnterCritSec(); // GKY 11-27-081475 1462 dcd->stopflag--; 1476 // DosExitCritSec();1477 1463 } 1478 1464 else if (*dcd->directory) { … … 1490 1476 case WM_TIMER: 1491 1477 // Started/stopped by DirObjWndPro 1492 // dcd = WinQueryWindowPtr(hwnd, QWL_USER);1493 1478 if (dcd) { 1494 1479 commafmt(tb, sizeof(tb), dcd->totalfiles); 1495 1480 CommaFmtULL(tf, sizeof(tf), dcd->ullTotalBytes, 'K'); 1496 1481 sprintf(s, "%s / %s", tb, tf); 1497 // DbgMsg(pszSrcFile, __LINE__, "WM_TIMER %s", s); // 15 Sep 09 SHL fixme debug1498 1482 WinSetDlgItemText(dcd->hwndClient, DIR_TOTALS, s); 1499 1483 } … … 1674 1658 } 1675 1659 else 1676 DosSleep(32); // 05 Aug 07 GKY 641660 DosSleep(32); 1677 1661 WinEnableMenuItem(DirCnrMenu, IDM_FINDINTREE, (hwndTree != (HWND) 0)); 1678 1662 } … … 1688 1672 case UM_SETUP2: 1689 1673 if (dcd) { 1690 // DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc UM_SETUP2 %x", hwnd);1691 1674 AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE); 1692 1675 SayFilter(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), … … 1986 1969 1987 1970 if (pszTempDir) { 1988 //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc IDM_FINDINTREE PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug1989 1971 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), 1990 1972 MPFROMLONG(1L))) … … 2373 2355 2374 2356 case IDM_RESCAN: 2375 dcd->stopflag++;; 2376 // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN"); 2357 dcd->stopflag++; 2377 2358 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPVOID)) { 2378 2359 dcd->stopflag--; … … 2509 2490 strcpy(dcd->directory, (CHAR *)mp2); 2510 2491 dcd->stopflag++; 2511 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");2512 2492 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) { 2513 2493 strcpy(dcd->directory, dcd->previous); … … 2539 2519 strcpy(dcd->directory, tempname2); 2540 2520 dcd->stopflag++; 2541 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");2542 2521 if (!PostMsg(dcd->hwndObject, 2543 2522 UM_RESCAN, MPVOID, MPFROMLONG(1L))) { … … 2567 2546 strcpy(dcd->directory, dcd->previous); 2568 2547 strcpy(dcd->previous, tempname); 2569 dcd->stopflag++; ; 2570 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN"); 2548 dcd->stopflag++; 2571 2549 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) { 2572 2550 strcpy(dcd->directory, dcd->previous); … … 2602 2580 strcpy(dcd->directory, newdir); 2603 2581 dcd->stopflag++; 2604 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");2605 2582 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) { 2606 2583 strcpy(dcd->directory, dcd->previous); … … 2878 2855 // 2015-08-07 SHL FIXME to wait for Flesh to finish before PostMsg 2879 2856 // 2015-09-26 GKY Waits (WaitFleshWorkListEmpty) in object window 2880 DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);2881 2857 if (SHORT2FROMMP(mp1) == CN_EXPANDTREE && AddFleshWorkRequest(hwnd, pci, eFlesh) && 2882 2858 !dcd->suspendview && fTopDir) { 2883 2859 PostMsg(dcd->hwndObject, UM_TOPDIR, MPFROMP(pci), MPVOID); 2884 DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);2885 2860 } 2886 2861 } … … 2889 2864 } 2890 2865 else if (SHORT2FROMMP(mp1) == CN_EXPANDTREE) { 2891 DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);2892 2866 if (AddFleshWorkRequest(hwnd, pci, eFlesh) && !dcd->suspendview && 2893 2867 fTopDir) { … … 2895 2869 // 2015-09-26 GKY Waits (WaitFleshWorkListEmpty) in object window 2896 2870 PostMsg(dcd->hwndObject, UM_TOPDIR, MPFROMP(pci), MPVOID); 2897 DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);2898 2871 } 2899 2872 } … … 3454 3427 strcpy(dcd->directory, pci->pszFileName); 3455 3428 dcd->stopflag++; 3456 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");3457 3429 if (!PostMsg(dcd->hwndObject, 3458 3430 UM_RESCAN, MPVOID, MPFROMLONG(1))) { … … 3498 3470 else { 3499 3471 dcd->stopflag++; 3500 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");3501 3472 if (!PostMsg(dcd->hwndObject, 3502 3473 UM_RESCAN, MPVOID, MPFROMLONG(1L))) { -
trunk/dll/draglist.c
r1641 r1877 373 373 ok = ok && pDItem->hstrTargetName; 374 374 if (!ok) { 375 //DbgMsg(pszSrcFile, __LINE__, "DrgAddStrHandle failed at %lu for %s", ulNumfiles, szFile);376 375 // If we have string handle add overflow, release corrupt DragItem 377 376 // We release 3 more to work around 1st time drag failure reported by Gregg … … 488 487 ok = ok && pDItem->hstrTargetName; 489 488 if (!ok) { 490 //DbgMsg(pszSrcFile, __LINE__, "DrgAddStrHandle failed at %lu for %s", ulNumfiles, szFile);491 489 // If we have string handle add overflow, release corrupt DragItem 492 490 // We release 3 more to work around 1st time drag failure reported by Gregg -
trunk/dll/eas.c
r1869 r1877 1061 1061 CHAR *p, *peaval; 1062 1062 1063 //DbgMsg(pszSrcFile, __LINE__, "SaveEA: entered for %s", filename);1064 1065 1063 if (!filename || !current) 1066 1064 return (PVOID)pfealist; // FIXME to complain … … 1217 1215 memcmp(current->pfea->szName + current->pfea->cbName + 1, 1218 1216 pfealist->list[0].szName + pfealist->list[0].cbName + 1, 1219 current->pfea->cbValue) == 0) 1220 { 1221 DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s unchanged", current->pfea->szName); 1217 current->pfea->cbValue) == 0) { 1218 //DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s unchanged", current->pfea->szName); 1222 1219 rc = 0; // Suppress rewrite 1223 1220 } … … 1225 1222 rc = xDosSetPathInfo(filename, FIL_QUERYEASIZE, 1226 1223 &eaop, sizeof(eaop), DSPI_WRTTHRU); 1227 DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s updated", current->pfea->szName);1224 //DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s updated", current->pfea->szName); 1228 1225 } 1229 1226 #else -
trunk/dll/filldir.c
r1873 r1877 397 397 if (pgeaPrev) { 398 398 pgeaPrev->oNextEntryOffset = (PSZ)pgea - (PSZ)pgeaPrev; 399 //DbgMsg(pszSrcFile, __LINE__, "pgea %p oNextEntryOffset %u", pgeaPrev, pgeaPrev->oNextEntryOffset);400 399 } 401 400 strcpy(pgea->szName, pcsz); 402 401 pgea->cbName = strlen(pgea->szName); 403 402 pgea->oNextEntryOffset = 0; 404 //DbgMsg(pszSrcFile, __LINE__, "pgea %p cbName %u szName %s", pgea, pgea->cbName, pgea->szName);405 403 offset = sizeof(GEA2) + pgea->cbName; // Calc length including null 406 404 offset = (offset + 3) & ~3; // Doubleword align … … 409 407 } 410 408 } // for 411 412 409 pgealist->cbList = (PSZ)pgea - (PSZ)pgealist; 413 //DbgMsg(pszSrcFile, __LINE__, "pgealist %p cbList %u", pgealist, pgealist->cbList);414 415 410 pfealist = xmallocz(65536, pszSrcFile, __LINE__); 416 411 if (pfealist) { … … 429 424 s, pci->pszFileName); 430 425 } 431 //DbgMsg(pszSrcFile, __LINE__, "DosQueryPathInfo %s failed with rc %u ", pci->pszFileName, rc);432 426 else { 433 427 PFEA2 pfea = eaop.fpFEA2List->list; … … 439 433 GetPString(IDS_ERROREATYPETEXT), 440 434 achValue, pfea->cbName, pfea->szName); 441 //DbgMsg(pszSrcFile, __LINE__, "EA type 0x%x unexpected for %.*s", achValue, pfea->cbName, pfea->szName);442 435 else { 443 436 CHAR ch = achValue[pfea->cbValue]; … … 446 439 pszValue = xstrdup(achValue + (sizeof(USHORT) * 2), pszSrcFile, __LINE__); 447 440 achValue[pfea->cbValue] = ch; 448 //DbgMsg(pszSrcFile, __LINE__, "pfea %p %.*s cbValue %u %s", pfea, pfea->cbName, pfea->szName, pfea->cbValue, pszValue);449 441 if (strncmp(pfea->szName, LONGNAME, pfea->cbName) == 0) 450 442 pci->pszLongName = pszValue; … … 454 446 Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 455 447 GetPString(IDS_ERROREATYPETEXT), pfea, pfea->cbName, pfea->szName); 456 //DbgMsg(pszSrcFile, __LINE__, "pfea %p EA %.*s unexpected", pfea, pfea->cbName, pfea->szName);457 448 } 458 449 } … … 772 763 else { 773 764 pci->pszFmtFileSize = NullStr; 774 //DbgMsg(pszSrcFile, __LINE__, "Bypassed Format size %s", pci->pszDisplayName);775 765 } 776 766 pci->date.day = pfsa4->fdateLastWrite.day; … … 1205 1195 while (pci && (INT)pci != -1) { 1206 1196 if (!pci->pszFileName || !strcmp(pci->pszFileName, NullStr)) { 1207 // 2015-08-23 SHL FIXME debug1208 //DbgMsg(pszSrcFile, __LINE__, "ProcessDirectory pci %p pci->pszFileName %p %s",1209 // pci, pci->pszFileName,1210 // pci->pszFileName == NullStr ? "NullStr" : "NULL");1211 1197 Runtime_Error(pszSrcFile, __LINE__, "pci->pszFileName NULL for %p", pci); 1212 1198 return; … … 1281 1267 ULONG startdrive = 3; 1282 1268 HWND hwndDrivelist; 1283 1284 1269 static BOOL didonce; 1285 1270 static ULONG ulLastDriveMap; 1286 1287 //DbgMsg(pszSrcFile, __LINE__, "FillTreeCnr hwndCnr %x hwndParent %x", hwndCnr, hwndParent); // 2015-08-03 SHL FIXME debug1288 1271 1289 1272 *szSuggest = 0; … … 1708 1691 } 1709 1692 } 1710 // DbgMsg(pszSrcFile, __LINE__, "szSuggest %x info %x", *szSuggest, info);1711 1693 if (*szSuggest) { 1712 1694 APIRET rc; … … 1768 1750 } // if !fDontSuggestAgain 1769 1751 didonce = TRUE; 1770 1771 //DbgMsg(pszSrcFile, __LINE__, "FillTreeCnr finished"); // 2015-08-03 SHL FIXME debug1772 1773 1752 } // FillTreeCnr 1774 1753 … … 1926 1905 VOID FreeCnrItem(HWND hwnd, PCNRITEM pci) 1927 1906 { 1928 // DbgMsg(pszSrcFile, __LINE__, "FreeCnrItem hwnd %x pci %p", hwnd, pci);1929 1930 1907 FreeCnrItemData(pci); 1931 1908 … … 2024 2001 if (remaining && --remaining == 0) 2025 2002 break; 2026 if (!bIdlePrioritySet /* && --usTimerCheckCountdown == 0 */) {2003 if (!bIdlePrioritySet) { 2027 2004 bIdlePrioritySet = !IdleIfNeeded(&itdSleep, 30); 2028 // usTimerCheckCountdown = RCI_ITEMS_PER_TIMER_CHECK;2029 2005 } 2030 2006 } // while … … 2035 2011 } 2036 2012 } 2037 2038 // DbgMsg(pszSrcFile, __LINE__, "RemoveCnrItems %p %u %s", pci, usCnt, pci->pszFileName);2039 2040 2013 if (remaining != - 1) { 2041 2014 remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&pciFirst), MPFROM2SHORT(usCnt, usFlags)); -
trunk/dll/findrec.c
r1871 r1877 66 66 pci = WinSendMsg(hwndCnr, 67 67 CM_SEARCHSTRING, MPFROMP(&srch), MPFROMP(pciParent)); 68 //DbgMsg(pszSrcFile, __LINE__,"FindCnrItem pciParent %p pci %p file %s", pciParent,69 // pci, file);70 68 while (pci && (INT) pci != -1) { 71 69 if (!noenv || (pci->flags & (RECFLAGS_ENV | RECFLAGS_UNDERENV)) == 0) { … … 158 156 MPFROMSHORT(CMA_VERTICAL), 159 157 MPFROMLONG((rclViewport.yTop - (rcl.yTop) - correction))); 160 #if 0161 DbgMsg(pszSrcFile, __LINE__, "RECTLFIRST %i RECTLLAST %i %p",162 rclFirst.yTop, rclLast.yTop, pmiLast);163 DbgMsg(pszSrcFile, __LINE__, "TOPPORT %i TOPRCL %i RIGHTRCL %i",164 rclViewport.yTop , rcl.yTop, rcl.xRight);165 #endif166 158 WinSendMsg(hwndCnr, 167 159 CM_SCROLLWINDOW, -
trunk/dll/flesh.c
r1876 r1877 95 95 96 96 static PCSZ pszFleshFocusPath; // 2015-08-20 SHL 97 #if 0 98 BOOL fNoFleshDbgMsg; // 2015-08-09 SHL FIXME to be gone 99 #endif 97 100 98 #pragma data_seg(GLOBAL1) 101 99 ULONG NoBrokenNotify; … … 200 198 ri.cRecordsInsert = 1; 201 199 ri.fInvalidateRecord = FALSE; 202 #if 0 // 2015-08-03 SHL FIXME debug203 if (pciL->pszFileName == NullStr)204 DbgMsg(pszSrcFile, __LINE__, "Stubby CM_INSERTRECORD pci %p pszFileName \"%s\"", pciL, pciL->pszFileName); // 2015-08-03 SHL FIXME debug205 #endif206 200 if (!WinSendMsg(hwndCnr, 207 201 CM_INSERTRECORD, MPFROMP(pciL), MPFROMP(&ri))) … … 250 244 return FALSE; 251 245 252 #if 0 // 2015-08-03 SHL FIXME debug253 if (!fNoFleshDbgMsg) {254 DbgMsg(pszSrcFile, __LINE__, "Flesh %s pciParent %p pszFileName %p",255 pciParent && (INT)pciParent != -1 && pciParent->pszFileName ?256 pciParent->pszFileName : "(null)",257 pciParent,258 pciParent && (INT)pciParent != -1 ? pciParent->pszFileName : (PVOID)-1); // 2015-08-03 SHL FIXME debug259 }260 #endif261 // 2015-08-06 SHL allow pciL -1262 // 2015-08-06 SHL FIXME to not need pszFileName check263 246 if (!pciParent->fleshed) { 264 247 pciL = (PCNRITEM)WinSendMsg(hwndCnr, … … 271 254 // 2015-08-06 SHL FIXME to ensure this can not happen 272 255 if (!*pciL->pszFileName || !strcmp(pciL->pszFileName, NullStr)) 273 Runtime_Error(pszSrcFile, __LINE__, "Flesh called with pci %p pszFileName (null)", pciL); 274 #if 0 275 if (!fNoFleshDbgMsg) 276 DbgMsg(pszSrcFile, __LINE__, "Flesh RemoveCnrItems() pciL %p \"%s\"", 277 pciL, 278 pciL->pszFileName ? pciL->pszFileName : "(null)"); // 2015-08-04 SHL FIXME debug 279 // Assume refernces to pciL already removed from work list 280 #endif 256 Runtime_Error(pszSrcFile, __LINE__, "Flesh called with pci %p pszFileName (null)", 257 pciL); 281 258 } 282 259 dcd = INSTDATA(hwndCnr); … … 318 295 if (!pciParent || !hwndCnr) 319 296 return; 320 #if 0321 if (!fNoFleshDbgMsg)322 DbgMsg(pszSrcFile, __LINE__, "UnFlesh pciParent %p pszFileName \"%s\"", pciParent, pciParent->pszFileName ? pciParent->pszFileName : "(null)"); // 2015-08-03 SHL FIXME debug323 #endif324 297 for (;;) { 325 298 pciL = (PCNRITEM)WinSendMsg(hwndCnr, … … 328 301 MPFROM2SHORT(CMA_FIRSTCHILD, CMA_ITEMORDER)); 329 302 if (!pciL || (INT)pciL == -1) 330 break; // Done 331 #if 0 332 if (!fNoFleshDbgMsg) 333 DbgMsg(pszSrcFile, __LINE__, "UnFlesh RemoveCnrItems() pciL %p \"%s\"", pciL, pciL->pszFileName ? pciL->pszFileName : "(null)"); // 2015-08-03 SHL FIXME debug 334 #endif 303 break; 335 304 RemoveCnrItems(hwndCnr, pciL, 1, CMA_FREE); 336 305 removed = TRUE; … … 383 352 static BOOL brokenlan = FALSE, isbroken = FALSE; 384 353 385 //DbgMsg(pszSrcFile, __LINE__,"Stubby pciParent %p", pciParent);386 354 if (!pciParent || (INT)pciParent == -1 || !*pciParent->pszFileName 387 355 || pciParent->pszFileName == NullStr || !hwndCnr) 388 356 return FALSE; 389 #if 0390 if (!fNoFleshDbgMsg)391 DbgMsg(pszSrcFile, __LINE__, "Stubby pciParent %p pszFileName %s", pciParent, pciParent->pszFileName); // 2015-08-03 SHL FIXME debug392 #endif393 357 // Build wildcard 394 358 len = strlen(pciParent->pszFileName); … … 402 366 if (!isalpha(*wildcard) || wildcard[1] != ':' || wildcard[2] != '\\') { 403 367 MakeFullName(wildcard); 404 //DbgMsg(pszSrcFile, __LINE__, "Stubby MakeFullName returned %s", wildcard); // 2015-08-19 SHL FIXME debug405 368 } 406 369 drvNum = toupper(*pciParent->pszFileName) - 'A'; … … 435 398 436 399 fl = includefiles ? FILE_DIRECTORY : MUST_HAVE_DIRECTORY; 437 438 //DbgMsg(pszSrcFile, __LINE__, "Stubby DosFindFirst(%s)", wildcard); // 2015-08-19 SHL FIXME debug439 440 400 rc = DosFindFirst(wildcard, 441 401 &hDir, … … 635 595 ri.cRecordsInsert = 1; 636 596 ri.fInvalidateRecord = TRUE; 637 #if 0 // 2015-08-03 SHL FIXME debug638 if (pci->pszFileName == NullStr)639 DbgMsg(pszSrcFile, __LINE__, "Stubby CM_INSERTRECORD %p \"%s\" %.255s", pci, pci->pszFileName, pffb->achName);640 #endif641 597 if (!WinSendMsg(hwndCnr, 642 598 CM_INSERTRECORD, MPFROMP(pci), MPFROMP(&ri))) { 643 599 // Assume busy and try again 644 DosSleep(50); //05 Aug 07 GKY 100600 DosSleep(50); 645 601 WinSetFocus(HWND_DESKTOP, hwndCnr); 646 602 if (WinIsWindow((HAB)0, hwndCnr)) { 647 #if 0648 if (!fNoFleshDbgMsg) {649 // 2015-08-03 SHL FIXME debug650 //if (pci->pszFileName == NullStr)651 // DbgMsg(pszSrcFile, __LINE__, "Stubby CM_INSERTRECORD pci %p pszFileName \"%s\"", pci, pci->pszFileName); // 2015-08-03 SHL FIXME debug652 }653 #endif654 603 if (!WinSendMsg(hwndCnr, 655 604 CM_INSERTRECORD, MPFROMP(pci), MPFROMP(&ri))) { … … 734 683 if (!item) 735 684 break; 736 //DbgMsg(pszSrcFile, __LINE__, "DeleteStaleFleshWorkListItems deleting %p %s", pci, pci->pszFileName ? pci->pszFileName : "(null)"); // 2015-08-03 SHL FIXME debug737 685 List2Delete(&FleshWorkList, item); 738 686 xfree(item, pszSrcFile, __LINE__); … … 748 696 */ 749 697 750 #ifndef AddFleshWorkRequest // 2015-08-03 SHL FIXME debug 698 751 699 BOOL AddFleshWorkRequest(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action) 752 #else753 BOOL AddFleshWorkRequestDbg(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action, PCSZ pszSrcFile_, UINT uSrcLineNo)754 #endif755 700 { 756 701 PFLESHWORKITEM item = xmallocz(sizeof(FLESHWORKITEM), pszSrcFile, __LINE__); … … 762 707 return FALSE; 763 708 764 // 2015-08-03 SHL FIXME debug765 #if 0 // 2015-08-13 SHL FIXME to be gone766 {767 static PSZ itemNames[] = {768 "eStubby", "eFlesh", "eFleshEnv", "eUnFlesh"769 };770 771 # ifdef AddFleshWorkRequest772 if (!pci || (INT)pci == -1) {773 Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest called with action %s pci %p by %s:%u",774 itemNames[item->action],775 pci,776 pszSrcFile_, uSrcLineNo);777 }778 else if (!pci->pszFileName) {779 Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest call with action %s pci %p pszFileName (null) by %s:%u",780 itemNames[item->action],781 pci,782 pszSrcFile_, uSrcLineNo);783 }784 else if (!fNoFleshDbgMsg) {785 DbgMsg(pszSrcFile, __LINE__, "AddFleshWorkRequest called with action %s pci %p pszFileName %s by %s:%u",786 itemNames[item->action],787 pci,788 pci->pszFileName,789 pszSrcFile_, uSrcLineNo); // 2015-08-03 SHL FIXME debug790 }791 #else792 if (!pci || (INT)pci == -1) {793 Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest call with action %s pci %p",794 itemNames[item->action],795 pci);796 }797 else if (!pci->pszFileName) {798 Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest called with action %s pci %p pszFileName (null)",799 itemNames[item->action],800 pci);801 }802 else if (!fNoFleshDbgMsg) {803 DbgMsg(pszSrcFile, __LINE__, "AddFleshWorkRequest action %s pci %p pszFileName %s",804 itemNames[item->action],805 pci,806 pci->pszFileName); // 2015-08-03 SHL FIXME debug807 }808 #endif809 }810 #endif811 709 812 710 xDosRequestMutexSem(hmtxFleshWork, SEM_INDEFINITE_WAIT); … … 858 756 */ 859 757 860 #ifndef WaitFleshWorkListEmpty // 2015-08-03 SHL FIXME debug 758 861 759 VOID WaitFleshWorkListEmpty(PCSZ pszDirName, ULONG ulSleep) 862 #else863 VOID WaitFleshWorkListEmptyDbg(PCSZ pszDirName, ULONG ulSleep, PCSZ pszSrcFile_, UINT uSrcLineNo_)864 #endif865 760 { 866 761 APIRET rc; … … 872 767 INT rcCount = 0; 873 768 874 if (tid == 1 || tid == tidFleshWorkListThread) { 875 # ifdef WaitFleshWorkListEmpty 876 Runtime_Error(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with worklist %sempty by tid %u at %s:%u", IsFleshWorkListEmpty() ? "" : "not ", tid, pszSrcFile_, uSrcLineNo_); 877 # else 769 if (tid == 1 || tid == tidFleshWorkListThread) { // 11 Oct 15 GKY Fixme did we intend to keep this 878 770 Runtime_Error(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called by tid %u", tid); 879 # endif880 771 return; // Avoid hang 881 772 } 882 #if 0883 else if (IsFleshWorkListEmpty()) {884 # ifdef WaitFleshWorkListEmpty885 DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with worklist empty at %s:%u", pszSrcFile_, uSrcLineNo_);886 # else887 DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with work list empty");888 # endif889 }890 #endif891 892 773 // Can not wait if call from thread 1 or FleshWorkListThread 893 774 for (waited = FALSE; !IsFleshWorkListEmpty(); waited = TRUE) { 894 895 #if 0 // 2015-08-19 SHL FIXME debug896 # ifdef WaitFleshWorkListEmpty897 if (!fNoFleshDbgMsg)898 DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with work list not empty by %s:%u", pszSrcFile_, uSrcLineNo_); // 2015-08-07 SHL FIXME debug899 # else900 if (!fNoFleshDbgMsg)901 DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with work list not empty"); // 2015-08-07 SHL FIXME debug902 # endif903 #endif // 2015-08-19 SHL FIXME debug904 905 775 // 2015-08-13 SHL 906 776 if (fAmQuitting) … … 965 835 if (pszOld) 966 836 xfree((PVOID)pszOld, pszSrcFile, __LINE__); 967 //DbgMsg(pszSrcFile, __LINE__, "SetFleshFocusPath focus path set to %s", pszFleshFocusPath); // 2015-08-03 SHL FIXME debug968 969 837 } 970 838 … … 1025 893 if (!item) { 1026 894 ULONG ul; 1027 #if 01028 if (!fNoFleshDbgMsg)1029 DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread work list empty - waiting"); // 2015-08-03 SHL FIXME debug1030 #endif1031 895 xDosWaitEventSem(hevFleshWorkListChanged, SEM_INDEFINITE_WAIT); 1032 896 xDosResetEventSem(hevFleshWorkListChanged, &ul); 1033 #if 01034 if (!fNoFleshDbgMsg)1035 DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread work hev posted"); // 2015-08-03 SHL FIXME debug1036 #endif1037 897 continue; 1038 898 } 1039 899 1040 if (WinIsWindow((HAB)0, item->hwndCnr)) { 1041 #if 0 // 2015-08-07 SHL FIXME debug 1042 { 1043 static PSZ itemNames[] = { 1044 "eStubby", "eFlesh", "eFleshEnv", "eUnFlesh" 1045 }; 1046 1047 PCNRITEM pci = item->pci; 1048 if (!fNoFleshDbgMsg) { 1049 DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread action %s pci %p pszFileName %s", 1050 itemNames[item->action], 1051 pci, 1052 pci && (INT)pci != -1 ? 1053 (pci->pszFileName ? pci->pszFileName : "(nullname)") : 1054 "(nullpci)"); // 2015-08-03 SHL FIXME debug 1055 } 1056 } 1057 #endif 900 if (WinIsWindow((HAB)0, item->hwndCnr)) { 1058 901 1059 902 switch (item->action) { … … 1065 908 break; 1066 909 case eStubby: 1067 // DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread pci %p pszFileName %s", stubbyArgs->pci, stubbyArgs->pci->pszFileName); // 2015-08-03 SHL FIXME debug1068 910 priority_bumped(); 1069 911 Stubby(item->hwndCnr, item->pci); … … 1093 935 1094 936 ProcessDirCount++; 1095 // DbgMsg(pszSrcFile, __LINE__, "ProcessDirCount %i FixedVolume %i", ProcessDirCount, FixedVolume);1096 937 if (ProcessDirCount >= FixedVolume) { 1097 938 ProcessDirCount = 0; … … 1122 963 if (rc) 1123 964 return FALSE; // Give up 1124 #if 01125 /*DbgMsg is time consuming1126 define FM2_NO_FLESH_DBGMSG to suppress1127 2015-08-09 SHL FIXME to be gone1128 */1129 1130 fNoFleshDbgMsg = getenv("FM2_NO_FLESH_DBGMSG") != NULL;1131 #endif1132 965 tidFleshWorkListThread = xbeginthread(FleshWorkThread, 1133 966 65536, -
trunk/dll/flesh.h
r1876 r1877 30 30 BOOL Flesh(HWND hwndCnr, PCNRITEM pciParent); 31 31 VOID UnFlesh(HWND hwndCnr, PCNRITEM pciParent); 32 #if 0 // 2015-08-03 SHL FIXME debug33 32 VOID WaitFleshWorkListEmpty(PCSZ pszDirName, ULONG ulSleep); 34 #else35 #define WaitFleshWorkListEmpty(pszDirName, ulSleep) WaitFleshWorkListEmptyDbg(pszDirName, ulSleep, __FILE__, __LINE__)36 VOID WaitFleshWorkListEmptyDbg(PCSZ pszDirName, ULONG ulSleep, PCSZ pszSrcFile, UINT uSrcLineNo);37 #endif38 39 #if 0 // 2015-08-03 SHL FIXME debug40 33 BOOL AddFleshWorkRequest(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action); 41 #else42 #define AddFleshWorkRequest(hwnCnr, pciParent, action) AddFleshWorkRequestDbg(hwnCnr, pciParent, action, __FILE__, __LINE__)43 BOOL AddFleshWorkRequestDbg(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action, PCSZ pszSrcFile, UINT uSrcLineNo);44 #endif45 34 46 35 // Data declarations -
trunk/dll/init.c
r1873 r1877 1216 1216 MaxComLineStrg = MAXCOMLINESTRGDEFAULT; 1217 1217 AutoviewHeight = 48; 1218 //strcpy(printer, "PRN");1219 1218 prnwidth = 80; 1220 1219 prnlength = 66; … … 1226 1225 prntabspaces = 8; 1227 1226 CollectorsortFlags = sortFlags = SORT_FILENAME | SORT_DIRSFIRST; 1228 //ullDATFileSpaceNeeded = 10000;1229 1230 1227 //Get default Country info 1231 1228 { … … 1240 1237 ulDateFmt = CtryInfo.fsDateFmt; 1241 1238 ulTimeFmt = CtryInfo.fsTimeFmt; 1242 //DbgMsg(pszSrcFile, __LINE__, "Date Fmt %x", ulDateFmt);1243 1239 } 1244 1240 else { … … 1277 1273 if (rc != NO_ERROR) { 1278 1274 fProtectOnly = TRUE; 1279 //DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VKBD returned %d fProtectOnly=%d", rc, fProtectOnly);1280 1275 } 1281 1276 else { … … 1283 1278 if (rc != NO_ERROR) { 1284 1279 fProtectOnly = TRUE; 1285 //DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VMOUSE returned %d fProtectOnly=%d", rc, fProtectOnly);1286 1280 } 1287 1281 } … … 1648 1642 ShowNote(); 1649 1643 1650 // 2015-08-11 SHL FIXME debug1651 //DbgMsg(pszSrcFile, __LINE__, "ShowEnv %u SwitchTree %u SwitchTreeExpand %u SwitchTreeOnFocus %u CollapseFirst %u", fShowEnv, fSwitchTreeOnDirChg, fSwitchTreeExpand, fSwitchTreeOnFocus, fCollapseFirst);1652 1653 1644 LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE); 1654 1645 -
trunk/dll/mainwnd.c
r1869 r1877 742 742 static HACCEL haccelCmdList = NULLHANDLE; 743 743 static HACCEL haccelButtonList = NULLHANDLE; 744 // DbgMsg(pszSrcFile, __LINE__, "WM_FOCUSCHANGE %u", SHORT1FROMMP(mp2));745 744 id = WinQueryWindowUShort(hwndParent, QWS_ID); 746 745 if (SHORT1FROMMP(mp2)) { … … 2137 2136 HWND hwndActive = TopWindow(hwnd, (HWND) 0); 2138 2137 if (hwndActive) 2139 //DbgMsg(pszSrcFile, __LINE__, "WinSendMsg UM_DRIVECMD %c", *dv); // 2015-08-04 SHL FIXME debug2140 2138 WinSendMsg(WinWindowFromID(hwndActive, FID_CLIENT), 2141 2139 UM_DRIVECMD, MPFROMP(dv), MPVOID); … … 3467 3465 3468 3466 sprintf(szPrefix, "%s.", pszStateName); 3469 3470 //DbgMsg(pszSrcFile, __LINE__, "RestoreDirCnrState %s", pszStateName); // 2015-08-13 SHL FIXME debug3471 3472 3467 // If restoring shutdown state bypass no-prescan drives 3473 3468 fIsShutDownState = strcmp(pszStateName, PCSZ_SHUTDOWNSTATE) == 0; … … 3681 3676 WinDestroyWindow(hwndPPSave); 3682 3677 } 3683 //DbgMsg(pszSrcFile, __LINE__, "RestoreDirCnrState returning fRestored %u", fRestored); // 2015-08-13 SHL FIXME debug3684 3678 } 3685 3679 … … 4769 4763 { 4770 4764 HWND hwnd = WinQueryFocus(HWND_DESKTOP); 4771 // DbgMsg(pszSrcFile, __LINE__, "IDM_CONTEXTMENU %x", hwnd);4772 4765 if (hwnd != NULLHANDLE) { 4773 4766 HWND hwndParent = WinQueryWindow(hwnd, QW_PARENT); … … 4777 4770 case MAIN_USERLIST: 4778 4771 case MAIN_CMDLIST: 4779 // DbgMsg(pszSrcFile, __LINE__, "WM_CONTEXTMENU");4780 4772 WinPostMsg(hwnd, WM_CONTEXTMENU, 0, 0); 4781 4773 } … … 6551 6543 } 6552 6544 else if (SHORT1FROMMP(mp1) == MAIN_DRIVELIST) { 6553 //DbgMsg(pszSrcFile, __LINE__, "MainWndProc CBN_ENTER ShowTreeRec(\"%s\")", path); // 2015-08-04 SHL FIXME debug6554 6545 ShowTreeRec(WinWindowFromID(WinWindowFromID(hwndTree, 6555 6546 FID_CLIENT), … … 6684 6675 fAmQuitting = TRUE; // Let world know quit in progress 6685 6676 DosSleep(1); 6686 //DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_CLOSE returning with fAmClosing %u", fAmClosing); // 2015-08-16 SHL6687 6688 6677 return 0; // Suppress WinDefWindowProc WM_QUIT message generation 6689 6678 … … 6714 6703 6715 6704 case WM_DESTROY: 6716 //DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_DESTROY hwnd %p TID %u", hwnd, GetTidForThread()); // 2015-08-09 SHL FIXME debug 6705 6717 6706 hwndMain = (HWND)0; 6718 6707 if (!PostMsg((HWND)0, WM_QUIT, MPVOID, MPVOID)) -
trunk/dll/mainwnd2.c
r1869 r1877 1405 1405 PostMsg(hwnd, UM_CLOSE, MPVOID, MPVOID); 1406 1406 fAmQuitting = TRUE; // Let world know quit in progress 1407 //DbgMsg(pszSrcFile, __LINE__, "MainWndProc2 WM_CLOSE returning with fAmClosing %u", fAmClosing); // 2015-08-16 SHL1408 1407 DosSleep(1); 1409 1408 return 0; // Suppress WinDefWindowProc WM_QUIT message generation -
trunk/dll/mkdir.c
r1675 r1877 76 76 if (!last) { 77 77 Broadcast((HAB) 0, hwndClient, UM_UPDATERECORD, MPFROMP(s), MPVOID); 78 //DbgMsg(pszSrcFile, __LINE__, "UM_UPDATERECORD %s", s);79 78 } 80 79 else if (last == ERROR_ACCESS_DENIED) { -
trunk/dll/notebook.c
r1869 r1877 3813 3813 if (!WinSetAccelTable(hab, haccelCfg, hwndNotebook)) 3814 3814 Win_Error(hwndNotebook, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_WINSETACCELTABLE); 3815 // else 3816 // DbgMsg(pszSrcFile, __LINE__, "WinSetAccelTable MAIN_DRIVELIST %x %x", hwndFrame, haccelDriveList); 3817 } 3818 3815 } 3819 3816 // If generic call, try to find conditional cascade default 3820 3817 // 15 Feb 08 SHL fixme to be gone when/if IDM_NOTEBOOK gone? 3821 3818 if (mp2 == MPFROMLONG(IDM_NOTEBOOK)) { 3822 //DbgMsg(pszSrcFile, __LINE__, "Trying to translate IDM_NOTEBOOK");3823 3819 hwndTemp = WinQueryWindow(hwnd, QW_OWNER); 3824 3820 if (hwndTemp != HWND_DESKTOP) { -
trunk/dll/notify.c
r1869 r1877 463 463 len--; 464 464 if (len2 != len) { 465 //DbgMsg(pszSrcFile, __LINE__, "len %u unexpected - should be %u", len2, len); // 18 Jul 08 SHL fixme to be Runtime_Error466 465 xfree((PSZ)p, pszSrcFile, __LINE__); 467 466 } -
trunk/dll/seeall.c
r1859 r1877 2154 2154 # endif 2155 2155 2156 // DbgMsg(pszSrcFile, __LINE__, "FindAllThread requesting hmtxScan");2157 2156 apiret = DosRequestMutexSem(ad->hmtxScan, SEM_INDEFINITE_WAIT); 2158 2157 if (apiret != NO_ERROR) … … 2212 2211 } 2213 2212 2214 // DbgMsg(pszSrcFile, __LINE__, "FindAllThread releasing hmtxScan");2215 2213 DosReleaseMutexSem(ad->hmtxScan); 2216 2214 } … … 2718 2716 2719 2717 case UM_SETUP5: 2720 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP5"); 2718 2721 2719 if (pAD) { 2722 2720 if (mp1 && *((CHAR *)mp1)) … … 2768 2766 2769 2767 case UM_SETUP2: 2770 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP2"); 2768 2771 2769 if (pAD) { 2772 2770 … … 2799 2797 2800 2798 case UM_SETUP3: 2801 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP3"); 2799 2802 2800 if (pAD) { 2803 2801 pAD->multiplier = pAD->afindexcnt / 32767; … … 2838 2836 2839 2837 case UM_SETUP4: 2840 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP4"); 2838 2841 2839 if (pAD) 2842 2840 pAD->killme = TRUE; … … 2846 2844 2847 2845 case UM_RESCAN: 2848 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_RESCAN"); 2846 2849 2847 if (pAD && !pAD->stopflag) { 2850 2848 if (DosRequestMutexSem(pAD->hmtxScan, SEM_IMMEDIATE_RETURN)) { … … 2924 2922 2925 2923 case UM_SETUP: 2926 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP"); 2924 2927 2925 if (pAD) { 2928 2926 WinSendMsg(pAD->hvscroll, SBM_SETTHUMBSIZE, MPFROM2SHORT(1, 1), MPVOID); … … 3514 3512 3515 3513 case WM_PAINT: 3516 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_PAINT"); 3514 3517 3515 if (pAD) { 3518 3516 … … 3712 3710 3713 3711 case WM_VSCROLL: 3714 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_VSCROLL"); 3712 3715 3713 if (pAD && !pAD->stopflag && 3716 3714 !DosRequestMutexSem(pAD->hmtxScan, SEM_IMMEDIATE_RETURN)) { … … 4406 4404 4407 4405 case WM_SIZE: 4408 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_SIZE"); 4406 4409 4407 PostMsg(hwnd, UM_SETUP3, MPVOID, MPVOID); 4410 4408 break; 4411 4409 4412 4410 case WM_CLOSE: 4413 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_CLOSE"); 4411 4414 4412 if (pAD) 4415 4413 pAD->stopflag = 1; … … 4418 4416 4419 4417 case WM_DESTROY: 4420 // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_DESTROY"); 4418 4421 4419 if (pAD) { 4422 4420 pAD->stopflag = 1; -
trunk/dll/strutil.c
r1460 r1877 123 123 } 124 124 125 // DbgMsg(pszSrcFile, __LINE__, "Fetching %lu", id);126 127 125 // If string already loaded, return it now 128 126 if (id >= ulFirstId && … … 133 131 if (((ULONG)psz & 0xffff0000) == 0) 134 132 DbgMsg(pszSrcFile, __LINE__, "id %lu corrupted %p", id, psz); 135 // DbgMsg(pszSrcFile, __LINE__, "id %lu \"%s\"", id, psz ? psz : "(null)");136 133 return psz; 137 134 } … … 158 155 if (i < cLongStrings) { 159 156 // Combine stringtable items to build long string 160 // DbgMsg(pszSrcFile, __LINE__, "Building long string %lu", id);161 157 for (; LongStrings[i].id == id; i++) { 162 158 uDbgState = 3; … … 207 203 uDbgState = 5; 208 204 // Add to cache 209 // DbgMsg(pszSrcFile, __LINE__, "Caching %lu", id);210 211 205 // Calculate new array limits 212 206 if (!pLoadedStrings) { … … 225 219 !pLoadedStrings) { 226 220 PSZ *pNewLoadedStrings; 227 // DbgMsg(pszSrcFile, __LINE__, "Reallocating for %lu", id);228 221 pNewLoadedStrings = xrealloc(pLoadedStrings, 229 222 (ulNewLastId - ulNewFirstId + 1) * sizeof(PSZ), … … 259 252 pLoadedStrings[id - ulFirstId] = psz; 260 253 cBusy--; 261 // DbgMsg(pszSrcFile, __LINE__, "id %lu \"%s\"", id, psz ? psz : "(null)");262 254 return psz; 263 255 } -
trunk/dll/systemf.c
r1859 r1877 670 670 671 671 memset(&ex, 0, sizeof(EXECARGS)); 672 //DbgMsg(pszSrcFile, __LINE__, "env %s", environment);673 672 if (!environment) { 674 673 ULONG size; … … 695 694 else 696 695 ex.flags = flags; 697 //DbgMsg(pszSrcFile, __LINE__, "Inserted %s", environment);698 696 ret = runemf2(ex.flags, hwnd, pszCallingFile, uiLineNumber, path, 699 697 *ex.environment ? ex.environment : NULL, -
trunk/dll/treecnr.c
r1876 r1877 348 348 349 349 // Walk down directory tree, expanding as needed 350 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec needs expand, szDirArg \"%s\", IsFleshWorkListEmpty %u", szDirArg, IsFleshWorkListEmpty()); // 2015-08-04 SHL FIXME debug351 352 350 strcpy(szDir, szDirArg); 353 351 p = szDir + 3; // Point after root backslash … … 364 362 TRUE); // noenv 365 363 if (!pciP || (INT)pciP == -1) { 366 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord(\"%s\") returned pciP %p", szDir, pciP); // 2015-08-04 SHL FIXME debug367 364 WaitFleshWorkListEmpty(szDirArg, 240); // 2015-08-23 SHL 368 365 break; // No match 369 366 } 370 371 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord(\"%s\") returned %p \"%s\"", szDir, pciP, pciP->pszFileName); // 2015-08-04 SHL FIXME debug372 373 367 if (!stricmp(szDirArg, pciP->pszFileName)) { 374 368 pci = pciP; … … 380 374 381 375 if (~pciP->rc.flRecordAttr & CRA_EXPANDED) { 382 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec expanding \"%s\"", pciP->pszFileName); // 2015-08-04 SHL FIXME debug383 376 WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciP), MPVOID); 384 377 } … … 401 394 402 395 } // for 403 404 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec retries %u pci %p pci->pszFileName \"%s\"",retries, pci, pci && (INT)pci != -1 ? pci->pszFileName : "(null)"); // 2015-08-04 SHL FIXME debug405 406 396 if (found) { 407 397 // Found it … … 447 437 if (pciToSelect && (INT) pciToSelect != -1) { 448 438 if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED) { 449 // 2015-08-23 SHL FIXME debug450 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_EXPANDTREE, %p)", pciToSelect); // 2015-08-04 SHL FIXME debug451 439 WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID); 452 440 } … … 455 443 WaitFleshWorkListEmpty(NULL, 240); //Let the root expand first otherwise it makes top 456 444 } 457 // 2015-08-23 SHL FIXME debug458 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec ShowCnrRecord(%p) filename %s", pciToSelect, pciToSelect->pszFileName); // 2015-08-04 SHL FIXME debug459 445 ShowCnrRecord(hwndCnr, (PMINIRECORDCORE)pciToSelect); 460 446 } … … 462 448 if (!quickbail) { 463 449 WaitFleshWorkListEmpty(szDirArg, 240); // 2015-08-19 SHL try to ensure contents stable 464 //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_SETRECORDEMPHASIS, CRA_SELECTED | CRA_CURSORED) szDirArg \"%s\"", szDirArg); // 2015-08-04 SHL FIXME debug465 450 WinSendMsg(hwndCnr, 466 451 CM_SETRECORDEMPHASIS, … … 746 731 See RestoreDirCnrState() 747 732 */ 748 //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug749 //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME \"%s\")", mp1); // 2015-08-04 SHL FIXME debug750 751 733 if (cDirectoriesRestored > 0) 752 734 cDirectoriesRestored--; … … 755 737 BOOL tempsusp = dcd->suspendview; 756 738 BOOL tempfollow = fFollowTree; 757 //BOOL temptop;758 739 dcd->suspendview = TRUE; 759 740 fFollowTree = FALSE; 760 #if 0 // 2015-09-20 GKY This doesn't appear to be needed since maketop is always TRUE761 if (mp2) {762 temptop = fTopDir;763 fTopDir = TRUE;764 }765 #endif766 //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME calling ShowTreeRec(\"%s\")", mp1); // 2015-08-04 SHL FIXME debug767 741 priority_idle(); // 2015-09-26 GKY Majority of work done by Flesh and UI threads 768 742 ShowTreeRec(dcd->hwndCnr, (CHAR *)mp1, fCollapseFirst, TRUE); 769 743 priority_normal(); 770 //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME calling PostMsg(IDM_UPDATE)"); // 2015-08-04 SHL FIXME debug771 744 PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID); 772 745 773 746 dcd->suspendview = (USHORT)tempsusp; // Restore 774 747 fFollowTree = tempfollow; // Restore 775 #if 0776 if (mp2)777 fTopDir = temptop; // Restore778 #endif779 748 } 780 749 } … … 831 800 priority_idle(); 832 801 if (SHORT1FROMMP(mp1) == IDM_EXPAND) { 833 //DbgMsg(pszSrcFile, __LINE__,"UM_EXPAND Start");834 802 fExpandAll = TRUE; 835 803 while (fExpanding) { // Not serialized not practical to wait on very large directories … … 840 808 fExpanding = ExpandAll(dcd->hwndCnr, x, (PCNRITEM) mp2); 841 809 DosSleep(240); 842 //DbgMsg(pszSrcFile, __LINE__,"UM_EXPAND fExpanding %i count %i", fExpanding, x);843 810 } 844 811 fExpandAll = FALSE; … … 1011 978 WaitFleshWorkListEmpty(pci->pszFileName, 240); // 2015-08-19 SHL in case pci still in work list 1012 979 if ((toupper(*pci->pszFileName) - 'A') > 1) { 1013 DbgMsg(pszSrcFile, __LINE__,"UM_RESCAN2 UnFlesh %s", pci->pszFileName);1014 980 AddFleshWorkRequest(hwnd, pci, eUnFlesh); 1015 981 } … … 1038 1004 CM_SCROLLWINDOW, 1039 1005 MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(-1)); 1040 //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc FillTreeCnr()"); // 2015-08-04 SHL FIXME debug1041 1006 FillTreeCnr(dcd->hwndCnr, dcd->hwndParent); 1042 1007 if (fOkayMinimize) { … … 1047 1012 CM_INVALIDATERECORD, 1048 1013 MPVOID, MPFROM2SHORT(0, CMA_ERASE | CMA_REPOSITION)); 1049 //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc PostMsg(UM_RESCAN)"); // 2015-08-04 SHL FIXME debug1050 1014 PostMsg(dcd->hwndCnr, UM_RESCAN, MPVOID, MPVOID); 1051 1015 } … … 1985 1949 1986 1950 if (dir) { 1987 //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_SHOWME PostMsg(UM_SHOWME, %s)", dir); // 2015-08-13 SHL FIXME debug1988 1951 if (!PostMsg(dcd->hwndObject, UM_SHOWME, MPFROMP(dir), MPVOID)) 1989 1952 free(dir); … … 2275 2238 chDrvU = *pci->pszFileName; 2276 2239 chDrvU = toupper(chDrvU); 2277 //DbgMsg(pszSrcFile, __LINE__,"IDM_FILESMENU prevalid drive %s file %s",2278 // szDrv, pci->pszFileName);2279 2240 MakeValidDir(szDrv); 2280 2241 rdy = *szDrv == chDrvU; // Drive not ready if MakeValidDir changes drive letter … … 2285 2246 local = rdy && (!(driveflags[chDrvU - 'A'] & (DRIVE_REMOTE | DRIVE_VIRTUAL))); 2286 2247 underenv = (pci->flags & RECFLAGS_UNDERENV) != 0; 2287 //DbgMsg(pszSrcFile, __LINE__,"IDM_FILESMENU postvalid drive %s rdy %i removable %i writeable %i local %i underenv %i",2288 // szDrv, rdy, removable, writeable, local, underenv);2289 2248 CopyPresParams((HWND) mp2, hwndMainMenu); 2290 2249 WinEnableMenuItem((HWND) mp2, IDM_INFO, rdy); … … 2433 2392 case UM_DRIVECMD: 2434 2393 if (mp1) { 2435 DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_DRIVECMD ShowTreeRec(\"%s\")", mp1);2436 2394 ShowTreeRec(hwnd, (CHAR *)mp1, FALSE, TRUE); 2437 DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc PostMsg(IDM_UPDATE)");2438 2395 PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID); 2439 2396 } … … 2902 2859 if (pci->fleshed) { 2903 2860 if (x > 1) { 2904 DbgMsg(pszSrcFile, __LINE__,"UM_UPDATE UnFlesh %s", pci->pszFileName);2905 2861 AddFleshWorkRequest(hwnd, pci, eUnFlesh); 2906 2862 } … … 3272 3228 break; // WM_DESTROY 3273 3229 } // switch 3274 //DbgMsg(pszSrcFile, __LINE__,"return oldproc msg %i mp1 %p mp2 %p", msg, mp1, mp2);3275 3230 if (dcd && dcd->oldproc){ 3276 3231 return dcd->oldproc(hwnd, msg, mp1, mp2); … … 3516 3471 } 3517 3472 else if (qmsg.msg == UM_EXPANDTREE) { 3518 // 2015-08-04 SHL3519 //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc qmsg.msg == UM_EXPANDTREE %p pci %p %s",3520 // qmsg.hwnd, pci, pci->pszFileName);3521 3473 if (fExpandAll) 3522 3474 DosSleep(1); … … 3526 3478 AddFleshWorkRequest(dcd->hwndCnr, pci, eFlesh); // forceFlesh 3527 3479 if (!dcd->suspendview && fTopDir) { 3528 //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_TOPDIR %p pci %p %s",3529 // qmsg.hwnd, pci, pci->pszFileName); // 2015-08-04 SHL FIXME debug3530 3480 PostMsg(dcd->hwndCnr, UM_TOPDIR, MPFROMP(pci), MPVOID); 3531 3481 } 3532 3482 } 3533 3483 if (qmsg.msg == UM_EXPANDTREE && !dcd->suspendview) { 3534 //DbgMsg(pszSrcFile, __LINE__, "UM_FILTER %p pci %p %s",3535 // dcd->hwndCnr, pci, pci->pszFileName);3536 3484 WinSendMsg(dcd->hwndCnr, UM_FILTER, MPVOID, MPVOID); 3537 3485 } -
trunk/dll/valid.c
r1749 r1877 339 339 DosFSCtl(&easize, sizeof(EASIZEBUF), &ulDataLen, NULL, ulParmLen, 340 340 &ulParmLen, FSCTL_MAX_EASIZE, szPath, -1, FSCTL_PATHNAME); 341 //DbgMsg(pszSrcFile, __LINE__, "%i %i %s %s", easize.cbMaxEASize, easize.cbMaxEAListSize, szPath, pfsn);342 341 szPath[2] = 0; 343 342 if (pulType && easize.cbMaxEASize == 0) -
trunk/dll/viewinf.c
r1673 r1877 570 570 } 571 571 else { 572 // DbgMsg(pszSrcFile, __LINE__, "Help file %s", p);573 572 ViewHelp(p); 574 573 } -
trunk/dll/walkem.c
r1673 r1877 124 124 load_setups(); 125 125 for (pld = pFirstSetup; pld; pld = pld->next) { 126 // DbgMsg(pszSrcFile, __LINE__, "Inserted %s", pld->path);127 126 WinSendMsg(hwndStatelist, 128 127 LM_INSERTITEM, … … 273 272 pld->next = pFirstSetup; 274 273 pFirstSetup = pld; 275 // DbgMsg(pszSrcFile, __LINE__, "Inserted %s", pld->path);276 277 274 if (ulDataBytes == ulOldSetupsBytes) 278 275 psz += 13; // Buffers fixed width prior to 3.0.7 -
trunk/dll/worker.c
r1866 r1877 1809 1809 DosReleaseMutexSem(hmtxFM2Delete); 1810 1810 } 1811 //DbgMsg(pszSrcFile, __LINE__, "error %i retrn %i", error, retrn);1812 1811 if (fWarnReadOnly && error == ERROR_FILE_EXISTS) { 1813 1812 retrn = SM2_NO; -
trunk/dll/wrappers.c
r1860 r1877 258 258 rc = DosAllocSharedMem(ppb, pszName, cb, 259 259 PAG_COMMIT | OBJ_GIVEABLE | PAG_READ | PAG_WRITE | OBJ_ANY); 260 //DbgMsg(pszSrcFile, __LINE__, "ppb %p", *ppb);261 260 if (rc) 262 261 rc = DosAllocSharedMem(ppb, pszName, cb, PAG_COMMIT | OBJ_GIVEABLE | PAG_READ | PAG_WRITE); … … 281 280 282 281 rc = DosAllocMem(ppb, cb, PAG_COMMIT | PAG_READ | PAG_WRITE | OBJ_ANY); 283 //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p %x", *ppb, rc);284 282 if (rc) 285 283 rc = DosAllocMem(ppb, cb, PAG_COMMIT | PAG_READ | PAG_WRITE); 286 284 if (rc) 287 285 Runtime_Error(pszSrcFile, uiLineNumber, GetPString(IDS_OUTOFMEMORY)); 288 //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p", *ppb);289 286 return rc; 290 287 }
Note:
See TracChangeset
for help on using the changeset viewer.
