Changeset 6841 for branches/splittup/src/win32k/ldr/myldrFindModule.cpp
- Timestamp:
- Sep 27, 2001, 5:08:35 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/splittup/src/win32k/ldr/myldrFindModule.cpp
r6192 r6841 1 /* $Id: myldrFindModule.cpp,v 1.3 2001-07-07 04:39:11bird Exp $1 /* $Id: myldrFindModule.cpp,v 1.3.2.1 2001-09-27 03:08:26 bird Exp $ 2 2 * 3 3 * ldrFindModule - ldrFindModule replacement with support for long DLL names 4 4 * and .DLL-extention dependency. 5 5 * 6 * Copyright (c) 1999-200 0 knut st. osmundsen (knut.stange.osmundsen@mynd.no)6 * Copyright (c) 1999-2001 knut st. osmundsen (kosmunds@csc.com) 7 7 * 8 8 * Project Odin Software License can be found in LICENSE.TXT … … 16 16 #define INCL_NOPMAPI 17 17 #define INCL_OS2KRNL_LDR 18 #define INCL_KKL_LOG 19 #define INCL_KKL_AVL 18 20 19 21 /******************************************************************************* … … 21 23 *******************************************************************************/ 22 24 #include <os2.h> 25 #include <peexe.h> 26 #include <exe386.h> 27 #include <OS2Krnl.h> 28 #include <kKrnlLib.h> 23 29 24 30 #include <memory.h> … … 27 33 28 34 #include "devSegDf.h" /* Win32k segment definitions. */ 29 #include "log.h"30 #include "avl.h"31 #include <peexe.h>32 #include <exe386.h>33 #include "OS2Krnl.h"34 35 #include "dev32.h" 35 36 #include "ldr.h" 36 37 #include "ModuleBase.h" 37 38 #include "options.h" 38 39 /*******************************************************************************40 * Global Variables *41 *******************************************************************************/42 extern PPMTE pmte_h;43 extern PPMTE pprogram_h;44 extern PPMTE pprogram_l;45 extern PPMTE pglobal_h;46 extern PPMTE pglobal_l;47 extern PPMTE pspecific_h;48 extern PPMTE pspecific_l;49 39 50 40 /******************************************************************************* … … 106 96 static PMTE pmteNULL = NULL; 107 97 static PPMTE ppmteNULL = &pmteNULL; 108 static P PMTE * apppmteHeadTail[] =98 static PMTE apmteHeadTail[] = 109 99 {/* head tail */ 110 &pmte_h, &ppmteNULL,/* CLASS_ALL 0x00000000 */111 &pprogram_h, &pprogram_l,/* CLASS_PROGRAM 0x00000040 */112 &pglobal_h, &pglobal_l,/* CLASS_GLOBAL 0x00000080 */113 &pspecific_h, &pspecific_l,/* CLASS_SPECIFIC 0x000000c0 */100 mte_h, pmteNULL, /* CLASS_ALL 0x00000000 */ 101 program_h, program_l, /* CLASS_PROGRAM 0x00000040 */ 102 global_h, global_l, /* CLASS_GLOBAL 0x00000080 */ 103 specific_h, specific_l, /* CLASS_SPECIFIC 0x000000c0 */ 114 104 }; 115 105 … … 157 147 * Find start and end mte node 158 148 */ 159 pmte = **apppmteHeadTail[usClass >> 5];160 pmteEnd = **apppmteHeadTail[(usClass >> 5) + 1];149 pmte = apmteHeadTail[usClass >> 5]; 150 pmteEnd = apmteHeadTail[(usClass >> 5) + 1]; 161 151 if (pmteEnd != NULL) /* Advance one node - see loop condition. */ 162 152 pmteEnd = pmteEnd->mte_link;
Note:
See TracChangeset
for help on using the changeset viewer.
