Ignore:
Timestamp:
Feb 15, 2000, 1:14:28 AM (26 years ago)
Author:
sandervl
Message:

search in path for dlls if not found

File:
1 edited

Legend:

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

    r2687 r2786  
    1 /* $Id: winimagepeldr.cpp,v 1.30 2000-02-08 22:29:16 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.31 2000-02-15 00:14:28 sandervl Exp $ */
    22
    33/*
     
    150150                                else    OSLibDosClose(dllfile);
    151151                        }
     152                        dllfile = OSLibDosOpen(szFileName, OSLIB_ACCESS_READONLY|OSLIB_ACCESS_SHAREDENYNONE);
     153                        if(dllfile == NULL) {
     154                                strcpy(szFileName, pszFileName);
     155                                strupr(szFileName);
     156                                OSLibDosSearchPath(OSLIB_SEARCHENV, "PATH", szFileName, szFileName, sizeof(szFileName));
     157                        }
     158                        else    OSLibDosClose(dllfile);
    152159                }
    153160                else    OSLibDosClose(dllfile);
Note: See TracChangeset for help on using the changeset viewer.