Ignore:
Timestamp:
Jun 15, 2001, 11:42:49 AM (24 years ago)
Author:
bird
Message:

Corrected Pe2Lx bug in LoadLibrary. Added isPe2LxDLL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/windllbase.cpp

    r5782 r6015  
    1 /* $Id: windllbase.cpp,v 1.25 2001-05-22 14:25:34 sandervl Exp $ */
     1/* $Id: windllbase.cpp,v 1.26 2001-06-15 09:42:47 bird Exp $ */
    22
    33/*
     
    3232#include <pefile.h>
    3333#include <windllbase.h>
     34#include <winimagepe2lx.h>
     35#include <windllpe2lx.h>
     36#include <winimagelx.h>
     37#include <windlllx.h>
    3438#include <wprocess.h>
    3539#include "exceptions.h"
     
    824828//******************************************************************************
    825829//******************************************************************************
     830Win32DllBase *Win32DllBase::findModuleByOS2Handle(HINSTANCE hinstance)
     831{
     832    dlllistmutex.enter();
     833
     834    for (Win32DllBase *pMod = Win32DllBase::getFirst(); pMod; pMod = pMod->getNext())
     835    {
     836        if (pMod->isLxDll())
     837        {
     838            if (((Win32LxDll *)pMod)->getHMOD() == hinstance)
     839            {
     840                dlllistmutex.leave();
     841                return(pMod);
     842            }
     843        }
     844        else if (pMod->isPe2LxDll())
     845        {
     846            if (((Win32Pe2LxDll *)pMod)->getHMOD() == hinstance)
     847            {
     848                dlllistmutex.leave();
     849                return(pMod);
     850            }
     851        }
     852    }
     853
     854    dlllistmutex.leave();
     855    return(NULL);
     856}
     857//******************************************************************************
     858//******************************************************************************
    826859BOOL Win32DllBase::isDll()
    827860{
Note: See TracChangeset for help on using the changeset viewer.