- Timestamp:
- Jul 6, 2001, 9:22:35 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/ldr/myldrCheckInternalName.cpp
r5086 r6188 1 /* $Id: myldrCheckInternalName.cpp,v 1. 3 2001-02-10 11:11:45 bird Exp $1 /* $Id: myldrCheckInternalName.cpp,v 1.4 2001-07-06 19:22:35 bird Exp $ 2 2 * 3 3 * ldrCheckInternalName - ldrCheckInternalName replacement with support for … … 81 81 PCHAR pachExt; /* Pointer to the extention part of pachFilename. (not dot!) */ 82 82 int cchExt; /* Length of the extention part of pachFilename. (not dot!) */ 83 PCHAR pachResName; /* Pointer to the internal name - resname.0 */ 83 84 APIRET rc; /* Return code. */ 84 85 … … 97 98 cchExt = (pachExt) ? strlen(pachExt) : 0; 98 99 ldrUCaseString(pachName, cchName + cchExt + 1); 99 100 pachResName = (PCHAR)pMTE->mte_swapmte->smte_restab; 100 101 101 102 /* 102 103 * Do the compare - DllFix case or standard case. 103 104 */ 104 if ( cchName > 8105 if ( (cchName > 8 && *pachResName > 8) 105 106 || ( (pMTE->mte_flags1 & CLASS_MASK) == CLASS_GLOBAL 106 107 && (cchExt != 3 || strcmp(pachExt, "DLL")) /* Extention != DLL. */ … … 112 113 * but it could have. 113 114 * 2. If not DLL extention, then internal name must have an extention. 114 * 3. If no exte tion the internal name should end with a '.'.115 * 3. If no extention the internal name should end with a '.'. 115 116 */ 116 PCHAR pachResName = (PCHAR)pMTE->mte_swapmte->smte_restab;117 118 117 if (pachExt != NULL && cchExt == 3 && !memcmp(pachExt, "DLL", 3)) /* DLL extention. */ 119 118 { /* (1) */
Note:
See TracChangeset
for help on using the changeset viewer.