Changeset 622 for trunk/src/kernel32/winimage.cpp
- Timestamp:
- Aug 22, 1999, 4:25:13 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimage.cpp
r612 r622 1 /* $Id: winimage.cpp,v 1.1 2 1999-08-21 19:47:30sandervl Exp $ */1 /* $Id: winimage.cpp,v 1.13 1999-08-22 14:24:35 sandervl Exp $ */ 2 2 3 3 /* … … 62 62 imageVirtBase(-1), realBaseAddress(0), imageVirtEnd(0), 63 63 nrNameExports(0), nrOrdExports(0), nameexports(NULL), ordexports(NULL), 64 szFileName(NULL),NameTable(NULL), Win32Table(NULL), fullpath(NULL),64 NameTable(NULL), Win32Table(NULL), fullpath(NULL), 65 65 tlsAddress(0), tlsIndexAddr(0), tlsInitSize(0), tlsTotalSize(0), tlsCallBackAddr(0), tlsIndex(-1), 66 66 pResSection(NULL), pResDir(NULL), winres(NULL), VersionId(-1) … … 75 75 foutInit = TRUE; 76 76 } 77 this->szFileName = szFileName;77 strcpy(this->szFileName, szFileName); 78 78 79 79 strcpy(szModule, StripPath(szFileName)); … … 98 98 imageVirtBase(-1), realBaseAddress(0), imageVirtEnd(0), 99 99 nrNameExports(0), nrOrdExports(0), nameexports(NULL), ordexports(NULL), 100 szFileName(NULL),NameTable(NULL), Win32Table(NULL), fullpath(NULL),100 NameTable(NULL), Win32Table(NULL), fullpath(NULL), 101 101 tlsAddress(0), tlsIndexAddr(0), tlsInitSize(0), tlsTotalSize(0), tlsCallBackAddr(0), tlsIndex(-1), 102 102 pResSection(NULL), pResDir(NULL), winres(NULL) … … 106 106 #endif 107 107 OS2ImageInit(hinstance, NameTableId, Win32TableId); 108 109 szFileName[0] = 0; 108 110 109 111 char *name = OS2GetDllName(hinstance); … … 422 424 return(FALSE); 423 425 } 424 entryPoint = realBaseAddress + oh.AddressOfEntryPoint; 426 if(oh.AddressOfEntryPoint) { 427 entryPoint = realBaseAddress + oh.AddressOfEntryPoint; 428 } 429 else { 430 fout << "EntryPoint == NULL" << endl; 431 entryPoint = NULL; 432 } 425 433 426 434 if(tlsDir != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.