Changeset 544 for trunk/src/peldr
- Timestamp:
- Aug 18, 1999, 2:24:53 PM (26 years ago)
- Location:
- trunk/src/peldr
- Files:
-
- 2 edited
-
initterm.cpp (modified) (3 diffs)
-
pe.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/peldr/initterm.cpp
r506 r544 1 /* $Id: initterm.cpp,v 1. 1 1999-08-16 13:54:06sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.2 1999-08-18 12:24:32 sandervl Exp $ */ 2 2 3 3 /* … … 32 32 #include <odin.h> 33 33 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 34 #include <winimage.h> 34 35 35 36 /*-------------------------------------------------------------------*/ … … 75 76 // This is done before any Odin or PMWIN dll is loaded, so we'll get 76 77 // a very low virtual address. (which is exactly what we want) 77 rc = DosAllocMem((PPVOID)&reservedMemory, 16*1024*1024, PAG_WRITE | PAG_READ);78 rc = DosAllocMem((PPVOID)&reservedMemory, PELDR_RESERVEDMEMSIZE, PAG_WRITE | PAG_READ); 78 79 79 80 /*******************************************************************/ -
trunk/src/peldr/pe.cpp
r506 r544 1 /* $Id: pe.cpp,v 1. 5 1999-08-16 13:54:07sandervl Exp $ */1 /* $Id: pe.cpp,v 1.6 1999-08-18 12:24:32 sandervl Exp $ */ 2 2 3 3 /* … … 72 72 HMODULE hmodPMWin, hmodKernel32; 73 73 74 printf("memory allocated at %X\n", ReserveMem());75 76 74 rc = DosLoadModule(exeName, sizeof(exeName), "PMWIN.DLL", &hmodPMWin); 77 75 rc = DosQueryProcAddr(hmodPMWin, ORD_WIN32INITIALIZE, NULL, (PFN *)&MyWinInitialize); … … 130 128 WinExe->setCommandLine(szCmdLine); 131 129 132 if(WinExe->init( ) == FALSE) {130 if(WinExe->init(ReserveMem()) == FALSE) { 133 131 delete WinExe; 134 132 return(1);
Note:
See TracChangeset
for help on using the changeset viewer.
