Changeset 544 for trunk/src/peldr


Ignore:
Timestamp:
Aug 18, 1999, 2:24:53 PM (26 years ago)
Author:
sandervl
Message:

PE loader changes (exes without fixups + TLS support)

Location:
trunk/src/peldr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/peldr/initterm.cpp

    r506 r544  
    1 /* $Id: initterm.cpp,v 1.1 1999-08-16 13:54:06 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.2 1999-08-18 12:24:32 sandervl Exp $ */
    22
    33/*
     
    3232#include <odin.h>
    3333#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     34#include <winimage.h>
    3435
    3536/*-------------------------------------------------------------------*/
     
    7576         //     This is done before any Odin or PMWIN dll is loaded, so we'll get
    7677         //     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);
    7879
    7980         /*******************************************************************/
  • trunk/src/peldr/pe.cpp

    r506 r544  
    1 /* $Id: pe.cpp,v 1.5 1999-08-16 13:54:07 sandervl Exp $ */
     1/* $Id: pe.cpp,v 1.6 1999-08-18 12:24:32 sandervl Exp $ */
    22
    33/*
     
    7272 HMODULE hmodPMWin, hmodKernel32;
    7373
    74   printf("memory allocated at %X\n", ReserveMem());
    75 
    7674  rc = DosLoadModule(exeName, sizeof(exeName), "PMWIN.DLL", &hmodPMWin);
    7775  rc = DosQueryProcAddr(hmodPMWin, ORD_WIN32INITIALIZE, NULL, (PFN *)&MyWinInitialize);
     
    130128  WinExe->setCommandLine(szCmdLine);
    131129
    132   if(WinExe->init() == FALSE) {
     130  if(WinExe->init(ReserveMem()) == FALSE) {
    133131        delete WinExe;
    134132        return(1);
Note: See TracChangeset for help on using the changeset viewer.