Ignore:
Timestamp:
Aug 15, 2000, 9:03:27 AM (25 years ago)
Author:
bird
Message:

32-bits GetDosVar don't work. Get module handle from PTDA. (which btw is much
faster). So, I've added a new import, ptda_module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/ldr/myldrOpenPath.cpp

    r4017 r4018  
    1 /* $Id: myldrOpenPath.cpp,v 1.1.2.1 2000-08-15 06:16:04 bird Exp $
     1/* $Id: myldrOpenPath.cpp,v 1.1.2.2 2000-08-15 07:03:26 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/*******************************************************************************
     
    134135        else
    135136        {
    136             struct InfoSegLDT *pInfoSeg;
    137             pInfoSeg = (struct InfoSegLDT *)D32Hlp_GetDOSVar(DHGETDOSV_LOCINFOSEG, 0);
    138             if (pInfoSeg != NULL)
     137            PPTDA   pPTDA = ptdaGetCur();
     138            if (pPTDA)
    139139            {
    140                 pExe = getModuleByhMTE(pInfoSeg->LIS_DI); /* LIS_DI is the same as hmod in LINFOSEG from bsedos16.h.  */
     140                pExe = getModuleByhMTE(ptdaGet_ptda_module(pPTDA));
    141141                #ifdef DEBUG            /* While testing! */
    142142                kprintf(("myldrOpenPath: getModuleByhMTE returned 0x%x08 for hmod=0x%04\n",
    143                          pExe, pInfoSeg->LIS_DI));
     143                         pExe, ptdaGet_ptda_module(pPTDA)));
    144144                #endif
    145145            }
    146             #ifdef DEBUG                /* While testing! */
    147             else
    148                 dprintf(("myldrOpenPath: D32Hlp_GetDOSVar(DHGETDOSV_LOCINFOSEG) failed.\n"));
    149             #endif
    150146        }
    151147
Note: See TracChangeset for help on using the changeset viewer.