- Timestamp:
- Oct 6, 2000, 1:04:42 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/peldr/pe.cpp
r4231 r4441 1 /* $Id: pe.cpp,v 1.2 1 2000-09-10 21:54:44sandervl Exp $ */1 /* $Id: pe.cpp,v 1.22 2000-10-06 11:04:42 sandervl Exp $ */ 2 2 3 3 /* … … 63 63 64 64 //should be the same as in ..\kernel32\winexepeldr.h 65 typedef BOOL (* WIN32API WIN32CTOR)(char *, char *, ULONG );66 67 WIN32CTOR 68 69 ULONG reservedMemory = 0;65 typedef BOOL (* WIN32API WIN32CTOR)(char *, char *, ULONG, BOOL); 66 67 WIN32CTOR CreateWin32Exe = 0; 68 ULONG reservedMemory = 0; 69 BOOL fConsoleApp = FALSE; 70 70 71 71 void AllocateExeMem(char *filename); … … 186 186 goto fail; 187 187 } 188 rc = DosQueryProcAddr(hmodKernel32, 0, "_CreateWin32PeLdrExe@1 2", (PFN *)&CreateWin32Exe);189 190 if(CreateWin32Exe(exeName, win32cmdline, reservedMemory ) == FALSE) {188 rc = DosQueryProcAddr(hmodKernel32, 0, "_CreateWin32PeLdrExe@16", (PFN *)&CreateWin32Exe); 189 190 if(CreateWin32Exe(exeName, win32cmdline, reservedMemory, fConsoleApp) == FALSE) { 191 191 goto fail; 192 192 } … … 272 272 goto end; 273 273 } 274 // if(!(fh.Characteristics & IMAGE_FILE_RELOCS_STRIPPED)) { 275 // goto end; //no need to allocate anything now 276 // } 274 fConsoleApp = (oh.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI); 277 275 278 276 // check for high memory support
Note:
See TracChangeset
for help on using the changeset viewer.