Ignore:
Timestamp:
Sep 27, 2001, 5:08:35 AM (24 years ago)
Author:
bird
Message:

Win32k/kKrnlLib splittup: done the major stuff.

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:11 bird Exp $
     1/* $Id: myldrFindModule.cpp,v 1.3.2.1 2001-09-27 03:08:26 bird Exp $
    22 *
    33 * ldrFindModule - ldrFindModule replacement with support for long DLL names
    44 *                  and .DLL-extention dependency.
    55 *
    6  * Copyright (c) 1999-2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     6 * Copyright (c) 1999-2001 knut st. osmundsen (kosmunds@csc.com)
    77 *
    88 * Project Odin Software License can be found in LICENSE.TXT
     
    1616#define INCL_NOPMAPI
    1717#define INCL_OS2KRNL_LDR
     18#define INCL_KKL_LOG
     19#define INCL_KKL_AVL
    1820
    1921/*******************************************************************************
     
    2123*******************************************************************************/
    2224#include <os2.h>
     25#include <peexe.h>
     26#include <exe386.h>
     27#include <OS2Krnl.h>
     28#include <kKrnlLib.h>
    2329
    2430#include <memory.h>
     
    2733
    2834#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"
    3435#include "dev32.h"
    3536#include "ldr.h"
    3637#include "ModuleBase.h"
    3738#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;
    4939
    5040/*******************************************************************************
     
    10696    static PMTE  pmteNULL = NULL;
    10797    static PPMTE ppmteNULL = &pmteNULL;
    108     static PPMTE * apppmteHeadTail[] =
     98    static PMTE  apmteHeadTail[] =
    10999    {/* 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 */
    114104    };
    115105
     
    157147     * Find start and end mte node
    158148     */
    159     pmte = **apppmteHeadTail[usClass >> 5];
    160     pmteEnd = **apppmteHeadTail[(usClass >> 5) + 1];
     149    pmte = apmteHeadTail[usClass >> 5];
     150    pmteEnd = apmteHeadTail[(usClass >> 5) + 1];
    161151    if (pmteEnd != NULL)                /* Advance one node - see loop condition. */
    162152        pmteEnd = pmteEnd->mte_link;
Note: See TracChangeset for help on using the changeset viewer.