Changeset 1836 for trunk/dll/collect.c
- Timestamp:
- Jul 15, 2015, 2:48:14 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/dll/collect.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r1803 r1836 89 89 02 May 15 GKY Changes to allow a JAVA executable object to be created using "Real object" 90 90 menu item on a jar file. 91 14 Jun 15 GKY Changes to prevent trap in Filter 91 92 92 93 ***********************************************************************/ … … 748 749 } 749 750 else { 750 // Update OK 751 if (Filter((PMINIRECORDCORE) pciUpd, (PVOID) & dcd->mask)) { 751 // Update OK 752 DosRequestMutexSem(hmtxFiltering, SEM_INDEFINITE_WAIT); 753 if (dcd && Filter((PMINIRECORDCORE) pciUpd, (PVOID) & dcd->mask)) { 752 754 pciUpd->rc.flRecordAttr &= ~CRA_FILTERED; // Ensure visible 753 755 // 2011-05-29 SHL fixme to check fail 754 756 WinSendMsg(dcd->hwndCnr, CM_INVALIDATERECORD, MPVOID, 755 757 MPFROM2SHORT(0, CMA_REPOSITION | CMA_ERASE)); 756 } 758 } 759 DosReleaseMutexSem(hmtxFiltering); 757 760 } 758 761 ulMaxFiles--; // No insert needed … … 913 916 TRUE)) { 914 917 // Already in container 915 pci = UpdateCnrRecord(dcd->hwndCnr, fullname, FALSE, dcd); 916 if (Filter((PMINIRECORDCORE) pci, (PVOID) & dcd->mask)) { 918 pci = UpdateCnrRecord(dcd->hwndCnr, fullname, FALSE, dcd); 919 DosRequestMutexSem(hmtxFiltering, SEM_INDEFINITE_WAIT); 920 if (dcd && Filter((PMINIRECORDCORE) pci, (PVOID) & dcd->mask)) { 917 921 pci->rc.flRecordAttr &= ~CRA_FILTERED; 918 922 WinSendMsg(dcd->hwndCnr, CM_INVALIDATERECORD, MPVOID, 919 923 MPFROM2SHORT(0, CMA_REPOSITION | CMA_ERASE)); 920 } 924 } 925 DosReleaseMutexSem(hmtxFiltering); 921 926 } 922 927 else if (IsFullName(fullname) && … … 1168 1173 DosRequestMutexSem(hmtxFiltering, SEM_INDEFINITE_WAIT); 1169 1174 free(dcd); 1175 dcd = NULL; 1170 1176 DosReleaseMutexSem(hmtxFiltering); 1171 1177 # ifdef FORTIFY … … 1425 1431 p = pci->pszFileName; 1426 1432 else { 1427 if (!pci->pszFileName) 1428 Runtime_Error(pszSrcFile, __LINE__, "pci->pszFileName NULL for %p", pci); 1429 p = strrchr(pci->pszFileName, '\\'); 1433 if (!pci->pszFileName) { 1434 Runtime_Error(pszSrcFile, __LINE__, "pci->pszFileName NULL for %p", pci); 1435 return 0; 1436 } 1437 p = strrchr(pci->pszFileName, '\\'); 1430 1438 if (p) { 1431 1439 if (*(p + 1)) … … 2128 2136 // 2013-12-13 SHL Allow nul pszFileName 2129 2137 pci = (PCNRITEM) CurrentRecord(hwnd); 2130 if (pci && pci->pszFileName && ~pci->attrFile & FILE_DIRECTORY) {2138 if (pci && pci->pszFileName != NullStr && ~pci->attrFile & FILE_DIRECTORY) { 2131 2139 p = strrchr(pci->pszFileName, '\\'); 2132 2140 if (p) { … … 2815 2823 case CN_ENDEDIT: 2816 2824 { 2817 MRESULT mre;2818 2819 mre = CnrDirectEdit(hwnd, msg, mp1, mp2);2825 MRESULT mre; 2826 2827 mre = CnrDirectEdit(hwnd, msg, mp1, mp2); 2820 2828 if (mre != (MRESULT) - 1) 2821 2829 return mre;
Note:
See TracChangeset
for help on using the changeset viewer.
