Ignore:
Timestamp:
Sep 2, 2000, 11:08:23 PM (25 years ago)
Author:
bird
Message:

Merged in the Grace branch. New Win32k!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/ldr/myldrOpenPath.cpp

    r3829 r4164  
    1 /* $Id: myldrOpenPath.cpp,v 1.1 2000-07-16 22:21:16 bird Exp $
     1/* $Id: myldrOpenPath.cpp,v 1.2 2000-09-02 21:08:10 bird Exp $
    22 *
    33 * myldrOpenPath - ldrOpenPath used to open executables we'll override
     
    1616#define INCL_NOPMAPI
    1717#define INCL_OS2KRNL_TCB
     18#define INCL_OS2KRNL_PTDA
    1819
    1920/*******************************************************************************
     
    2526#include <stdlib.h>
    2627
     28#include "devSegDf.h"                   /* Win32k segment definitions. */
    2729#include "log.h"
    2830#include "dev32.h"
     
    134136        else
    135137        {
    136             struct InfoSegLDT *pInfoSeg;
    137             pInfoSeg = (struct InfoSegLDT *)D32Hlp_GetDOSVar(DHGETDOSV_SYSINFOSEG, 0);
    138             if (pInfoSeg == NULL)
     138            PPTDA   pPTDA = ptdaGetCur();
     139            if (pPTDA)
    139140            {
    140                 pExe = getModuleByhMTE(pInfoSeg->LIS_DI); /* LIS_DI is the same as hmod in LINFOSEG from bsedos16.h.  */
     141                pExe = getModuleByhMTE(ptdaGet_ptda_module(pPTDA));
    141142                #ifdef DEBUG            /* While testing! */
    142                 kprintf(("myldrOpenPath: getModuleByhMTE returned 0x%x08 for hmod=0x%04\n",
    143                          pExe, pInfoSeg->LIS_DI));
     143                kprintf(("myldrOpenPath: getModuleByhMTE returned 0x%08x for hmod=0x%04x\n",
     144                         pExe, ptdaGet_ptda_module(pPTDA)));
    144145                #endif
    145146            }
    146             #ifdef DEBUG                /* While testing! */
    147             else
    148                 dprintf(("myldrOpenPath: D32Hlp_GetDOSVar(DHGETDOSV_SYSINFOSEG) failed.\n"));
    149             #endif
    150147        }
    151148
Note: See TracChangeset for help on using the changeset viewer.