Ignore:
Timestamp:
Mar 12, 2001, 3:16:33 PM (24 years ago)
Author:
sandervl
Message:

SearchPath & pe loader fixes

File:
1 edited

Legend:

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

    r5266 r5303  
    1 /* $Id: winimagepeldr.cpp,v 1.68 2001-02-25 16:05:39 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.69 2001-03-12 14:16:33 sandervl Exp $ */
    22
    33/*
     
    16751675    if(WinDll == NULL)
    16761676    {  //not found, so load it
    1677         WinDll = loadDll(pszCurModule);
     1677        if (WinExe != NULL && WinExe->matchModName(pszCurModule)) {
     1678             WinImage = (Win32ImageBase *)WinExe;
     1679        }
     1680        else {
     1681             WinDll = loadDll(pszCurModule);
     1682        }
    16781683    }
    16791684    else {
     
    16811686        dprintf((LOG, "Already found ", pszCurModule));
    16821687    }
    1683     if(WinDll == NULL) {
    1684         //TODO: might not be the right order (check executable first and only then dll??)
    1685         if (WinExe != NULL && WinExe->matchModName(pszCurModule)) {
    1686              WinImage = (Win32ImageBase *)WinExe;
    1687         }
    1688         else return FALSE;
    1689     }
    1690     else {
     1688    if(WinDll != NULL) {
    16911689        //add the dll we just loaded to dependency list for this image
    16921690        addDependency(WinDll);
Note: See TracChangeset for help on using the changeset viewer.