Changeset 1475 for trunk/src/kernel32/winimagepeldr.cpp
- Timestamp:
- Oct 27, 1999, 12:35:42 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.cpp
r1410 r1475 1 /* $Id: winimagepeldr.cpp,v 1. 8 1999-10-23 12:34:48sandervl Exp $ */1 /* $Id: winimagepeldr.cpp,v 1.9 1999-10-27 10:35:42 sandervl Exp $ */ 2 2 3 3 /* … … 44 44 #include "initterm.h" 45 45 #include <win\virtual.h> 46 #include "oslibdos.h" 46 47 47 48 char szErrorTitle[] = "Odin"; … … 67 68 //****************************************************************************** 68 69 //****************************************************************************** 69 Win32PeLdrImage::Win32PeLdrImage(char * szFileName, int loadtype) :70 Win32PeLdrImage::Win32PeLdrImage(char *pszFileName, int loadtype) : 70 71 Win32ImageBase(-1), 71 72 nrsections(0), imageSize(0), … … 74 75 pResSection(NULL), fImgMapping(0) 75 76 { 77 HFILE dllfile; 78 76 79 loadType = loadtype; 77 80 78 strcpy(this->szFileName, szFileName); 81 strcpy(szFileName, pszFileName); 82 strupr(szFileName); 83 if(!strchr(szFileName, (int)'.')) { 84 strcat(szFileName,".DLL"); 85 } 86 dllfile = OSLibDosOpen(szFileName, OSLIB_ACCESS_READONLY|OSLIB_ACCESS_SHAREDENYNONE); 87 if(dllfile == NULL) {//search in libpath for dll 88 strcpy(szModule, kernel32Path); 89 strcat(szModule, szFileName); 90 strcpy(szFileName, szModule); 91 } 92 else OSLibDosClose(dllfile); 79 93 80 94 strcpy(szModule, OSLibStripPath(szFileName));
Note:
See TracChangeset
for help on using the changeset viewer.