Ignore:
Timestamp:
Feb 8, 2000, 11:29:16 PM (26 years ago)
Author:
sandervl
Message:

Search path for executables when they can't be found in the current directory.

File:
1 edited

Legend:

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

    r2513 r2687  
    1 /* $Id: winimagepeldr.cpp,v 1.29 2000-01-25 20:27:17 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.30 2000-02-08 22:29:16 sandervl Exp $ */
    22
    33/*
     
    120120                if(!strstr(szFileName, ".EXE")) {
    121121                        strcat(szFileName,".EXE");
     122                }
     123                dllfile = OSLibDosOpen(szFileName, OSLIB_ACCESS_READONLY|OSLIB_ACCESS_SHAREDENYNONE);
     124                if(dllfile == NULL) {
     125                        OSLibDosSearchPath(OSLIB_SEARCHENV, "PATH", szFileName, szFileName, sizeof(szFileName));
    122126                }
    123127        }
Note: See TracChangeset for help on using the changeset viewer.