Changeset 4778 for trunk/src/win32k/ldr/myldrOpenPath.cpp
- Timestamp:
- Dec 11, 2000, 7:30:59 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/ldr/myldrOpenPath.cpp
r4307 r4778 1 /* $Id: myldrOpenPath.cpp,v 1. 3 2000-09-22 09:22:40bird Exp $1 /* $Id: myldrOpenPath.cpp,v 1.4 2000-12-11 06:30:59 bird Exp $ 2 2 * 3 3 * myldrOpenPath - ldrOpenPath used to open executables we'll override 4 4 * this to altern the search path for DLLs. 5 5 * 6 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@ pmsc.no)6 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no) 7 7 * 8 8 * Project Odin Software License can be found in LICENSE.TXT … … 37 37 #include "ldr.h" 38 38 #include "ModuleBase.h" 39 39 #include "options.h" 40 40 41 41 … … 91 91 { 92 92 93 APIRET rc;93 APIRET rc; 94 94 95 95 #ifdef DEBUG … … 122 122 else 123 123 setLdrStateLoadingUnsupported(); 124 125 126 /* 127 * Check if we're to apply the extention fix in myldrOpen. 128 * The required conditions are: 129 * 1. Global class. (ie. DLL) 130 * 2. Name must include a dot. 131 * 3. The extention must not be .DLL. 132 */ 133 fldrOpenExtentionFix = isDllFixesEnabled() 134 && plv->lv_class == CLASS_GLOBAL 135 && memchr(pachFilename, '.', cchFilename) 136 && ( cchFilename < 4 137 || memcmp(pachFilename + cchFilename - 4, ".DLL", 4)); 124 138 125 139 /* … … 189 203 setLdrStateClearLoadingType(); 190 204 205 /* 206 * Clear the extention fix flag. 207 */ 208 fldrOpenExtentionFix = FALSE; 209 191 210 return rc; 192 211 }
Note:
See TracChangeset
for help on using the changeset viewer.