Changeset 1777 for trunk/dll/dircnrs.c
- Timestamp:
- Jun 13, 2014, 3:51:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dircnrs.c
r1756 r1777 747 747 case UM_SETUP: 748 748 # ifdef FORTIFY 749 // DbgMsg(pszSrcFile, __LINE__, "UM_SETUP hwnd %p TID %u", hwnd, GetTidForThread()); // 18 Jul 08 SHL fixme749 // DbgMsg(pszSrcFile, __LINE__, "UM_SETUP hwnd %p TID %u", hwnd, GetTidForThread()); // 18 Jul 08 SHL fixme 750 750 Fortify_EnterScope(); 751 751 # endif … … 878 878 WinSendMsg(hwndMain, UM_LOADFILE, MPVOID, MPVOID); 879 879 } 880 while (fInitialDriveScan) 881 DosSleep(100); 880 while (fInitialDriveScan) { 881 DosSleep(100); // Allow to complete 882 } 882 883 if (fSwitchTree && hwndTree) { 883 884 // Keep drive tree in sync with directory container … … 1414 1415 strcpy(dcd->previous, dcd->directory); 1415 1416 strcpy(dcd->directory, fullname); 1416 // DosEnterCritSec(); //GKY 11-27-081417 // DosEnterCritSec(); // GKY 11-27-08 1417 1418 dcd->stopflag++; 1418 // DosExitCritSec();1419 // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");1419 // DosExitCritSec(); 1420 // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN"); 1420 1421 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) { 1421 1422 strcpy(dcd->directory, dcd->previous); 1422 // DosEnterCritSec(); //GKY 11-27-081423 // DosEnterCritSec(); // GKY 11-27-08 1423 1424 dcd->stopflag--; 1424 // DosExitCritSec();1425 // DosExitCritSec(); 1425 1426 } 1426 1427 else if (*dcd->directory) { … … 1620 1621 } 1621 1622 else 1622 DosSleep(32); // 05 Aug 07 GKY 641623 DosSleep(32); // 05 Aug 07 GKY 64 1623 1624 WinEnableMenuItem(DirCnrMenu, IDM_FINDINTREE, (hwndTree != (HWND) 0)); 1624 1625 } 1626 // 2014-06-11 SHL fm/2 lite can get here before drive scan completes 1625 1627 if (!fInitialDriveScan) 1626 1628 PostMsg(hwnd, UM_SETUP2, MPVOID, MPVOID); … … 1634 1636 case UM_SETUP2: 1635 1637 if (dcd) { 1638 // DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc UM_SETUP2 %x", hwnd); 1636 1639 AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE); 1637 1640 SayFilter(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), … … 1847 1850 strcpy(newfile, dcd->directory); 1848 1851 AddBackslashToPath(newfile); 1849 //if (newfile[strlen(newfile) - 1] != '\\') 1850 // strcat(newfile, "\\"); 1852 # if 0 1853 if (newfile[strlen(newfile) - 1] != '\\') 1854 strcat(newfile, "\\"); 1855 # endif 1851 1856 strcat(newfile, sip.ret); 1852 1857 test = IsFile(newfile); … … 2124 2129 TileChildren(dcd->hwndParent, TRUE); 2125 2130 WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE); 2126 DosSleep(100); // 05 Aug 07 GKY 2502131 DosSleep(100); // 05 Aug 07 GKY 250 2127 2132 } 2128 2133 } … … 2147 2152 2148 2153 case IDM_COLLECTOR: 2149 DosSleep(32); // 05 Aug 07 GKY 642154 DosSleep(32); // 05 Aug 07 GKY 64 2150 2155 { 2151 2156 CHAR **list; … … 2212 2217 2213 2218 case IDM_RESORT: 2214 // WinSendMsg(hwnd, 2215 // CM_SORTRECORD, 2216 // MPFROMP(SortDirCnr), 2217 // MPFROMLONG((fSyncUpdates) ? sortFlags : dcd->sortFlags)); 2219 # if 0 2220 WinSendMsg(hwnd, 2221 CM_SORTRECORD, 2222 MPFROMP(SortDirCnr), 2223 MPFROMLONG((fSyncUpdates) ? sortFlags : dcd->sortFlags)); 2224 #endif 2218 2225 WinSendMsg(hwnd, 2219 2226 CM_SORTRECORD, … … 2315 2322 //DosEnterCritSec(); //GKY 11-27-08 2316 2323 dcd->stopflag++; 2317 // DosExitCritSec();2318 // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");2324 // DosExitCritSec(); 2325 // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN"); 2319 2326 if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPVOID)) { 2320 2327 //DosEnterCritSec(); //GKY 11-27-08 … … 2769 2776 if (pci->attrFile & FILE_DIRECTORY) { 2770 2777 menuHwnd = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP); 2771 //WinEnableMenuItem(DirMenu,IDM_TREE,TRUE);2778 // WinEnableMenuItem(DirMenu,IDM_TREE,TRUE); 2772 2779 } 2773 2780 else
Note:
See TracChangeset
for help on using the changeset viewer.