Changeset 1447 for trunk/dll/treecnr.c
- Timestamp:
- Jul 23, 2009, 11:16:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r1446 r1447 857 857 DosRequestMutexSem(hmtFillingTreeCnr, SEM_INDEFINITE_WAIT); 858 858 FillTreeCnr(dcd->hwndCnr, dcd->hwndParent); 859 DosReleaseMutexSem(hmtFillingTreeCnr);860 859 if (fOkayMinimize) { 861 860 PostMsg(dcd->hwndCnr, UM_MINIMIZE, MPVOID, MPVOID); … … 1904 1903 DosBeep(50, 100); 1905 1904 if (hwndStatus) 1906 WinSetWindowText(hwndStatus, GetPString(IDS_RESCANSUGTEXT)); 1905 WinSetWindowText(hwndStatus, GetPString(IDS_RESCANSUGTEXT)); 1906 DosReleaseMutexSem(hmtFillingTreeCnr); 1907 1907 return 0; 1908 1908 } … … 1923 1923 } 1924 1924 } // for 1925 RemoveCnrItems(hwnd, pciP, 1, CMA_FREE | CMA_INVALIDATE); 1925 RemoveCnrItems(hwnd, pciP, 1, CMA_FREE | CMA_INVALIDATE); 1926 DosReleaseMutexSem(hmtFillingTreeCnr); 1926 1927 return 0; 1927 1928 } … … 1994 1995 UnFlesh(hwnd, pci); 1995 1996 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 1996 PostMsg(hwnd, UM_SETUP2, MPFROMP(pci), MPFROMLONG(status)); 1997 PostMsg(hwnd, UM_SETUP2, MPFROMP(pci), MPFROMLONG(status)); 1998 DosReleaseMutexSem(hmtFillingTreeCnr); 1997 1999 return 0; 1998 2000 } … … 2016 2018 if ((shiftstate & (KC_CTRL | KC_ALT)) == (KC_CTRL | KC_ALT)) { 2017 2019 PostMsg(hwnd, 2018 WM_COMMAND, MPFROM2SHORT(IDM_SHOWALLFILES, 0), MPVOID); 2020 WM_COMMAND, MPFROM2SHORT(IDM_SHOWALLFILES, 0), MPVOID); 2021 DosReleaseMutexSem(hmtFillingTreeCnr); 2019 2022 return 0; 2020 2023 } 2021 2024 if ((shiftstate & (KC_CTRL | KC_SHIFT)) == (KC_CTRL | KC_SHIFT)) { 2022 OpenObject(pci->pszFileName, Settings, dcd->hwndFrame); 2025 OpenObject(pci->pszFileName, Settings, dcd->hwndFrame); 2026 DosReleaseMutexSem(hmtFillingTreeCnr); 2023 2027 return 0; 2024 2028 } 2025 2029 if (!(shiftstate & (KC_CTRL | KC_SHIFT))) { 2026 2030 if (!ParentIsDesktop(hwnd, dcd->hwndParent)) { 2027 if (FindDirCnrByName(pci->pszFileName, TRUE)) 2028 return 0; 2031 if (FindDirCnrByName(pci->pszFileName, TRUE)) { 2032 DosReleaseMutexSem(hmtFillingTreeCnr); 2033 return 0; 2034 } 2029 2035 } 2030 2036 } … … 2048 2054 } 2049 2055 OpenObject(pci->pszFileName, s, dcd->hwndFrame); 2056 DosReleaseMutexSem(hmtFillingTreeCnr); 2050 2057 return 0; 2051 2058 }
Note:
See TracChangeset
for help on using the changeset viewer.